We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2007-02-14 03:27 PM
2007-02-14 04:13 PM
dim t[], s[] ! ### set source t[1]="one " t[2]="two " t[3]="three " t[4]="four " ! ### preset destination FOR i=1 TO VARDIM1(t) s="" NEXT i ! ### sort FOR i=1 TO VARDIM1(t) p=i FOR j=1 TO i-1 IF s>t THEN ! insert element FOR k=i TO j+1 STEP -1 s =s[k-1] NEXT k p=j : j=VARDIM1(s) ENDIF NEXT j s =t NEXT i ! ### output PRINT s, "/", VARDIM1(s)
2007-02-15 12:46 AM
2007-02-17 07:45 PM