Hi Leute!
Einer ne Idee, wie ich Types sortieren könnte, sprich nach einen Feld das sich Activ schimpft.
Wieso ich das brauche:
Hab ne GUI angefangen, und nun will ich es hin bekommen dass das aktive Fenster, in den Vordergrund kommt. Nur hab ich keinen schimmer/idee wie ich da ran gehen soll....
So?
FUNCTION SortXY: f[] AS XY
LOCAL tmp AS XY, i
FOR i=0 TO LEN(f[])-2
IF f[i].active > f[i+1].active
tmp=f[i]; f[i]=f[i+1]; f[i+1]=tmp
DEC i, 1
IF i>=0 THEN DEC i,1
ENDIF
NEXT
ENDFUNCTION
Dank dir