I couldn't find a solution to my problem...
I have an array, which i tried to declare as global in preopen stack (i've tried without too)
Code: Select all
on openstack
global aTabPre
end openstack
Code: Select all
on mouseUp
put url("binfile:" & tDatabasePath & "\myfile.txt") into sContenu
put 0 into nLinecounter
repeat for each line tLine in sContenu
add 1 to nLinecounter
put item 1 of tLine into var1
put item 2 of tLine into aTabPre[nLinecounter]
end repeat
end mouseup
Code: Select all
answer aTabPre[2] with ok
I guess it is a global definition problem ? But i can't see what's wrong
I could do the repeat code each time i would need, but i'm sure we can avoid this by just keeping the array, no ?
Thanks for help
Chris