Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controls in child window
#6
Macro Macro1450
Code:
Copy      Help
;instead of
;ARRAY(int) ControlID="1 12 25 45"
;use
ARRAY(int) ControlID
ArrayIntFromList ControlID "1 12 25 45"

Function ArrayIntFromList
Code:
Copy      Help
;/
function ARRAY(int)&a $data

;Populates int array from list of numbers.

;a - receives result.
;data - list of numbers, like "1 12 7 2"


ARRAY(lpstr) b
tok data b -1
a.create(b.len)
int i
for i 0 b.len
,a[i]=val(b[i])


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)