Just to complete the information:
Array defined by DIMENSION command in Init method has private visibility scope only (visible in Init method and in procedures called from Init). When your Init metod exits the array disappears.
Array defined by LOCAL ARRAY exists and is visible in Init method only (or in procedure where it was declared).
I am voting for array declared as Form property or cursor (which you should close in Form.Unload).
Main Topics
Browse All Topics





by: CaptainCyrilPosted on 2009-08-25 at 21:47:13ID: 25184487
Is that array attached to the form (oForm.Array) or is it public? If it's not then the form won't be able to see it. Just issue a PUBLIC array or better yet attach it as a property to the form this way if you open multi-instances of the form it will be valid.
DIMENSION .aPoly[10,2]