Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cant get the Length of a Form array
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Cant get the Length of a Form array
Miscellaneous
Thread ID:
00733113
Message ID:
00733113
Views:
48
Hi.
I have the following code in the Init of a grid:

(Myarray is a Property of the Form(An Array propeerty)

DIMENSION ThisForm.MyArray(1,2)
Thisform.Myarray[1,1] = ' '
Thisform.MyArray[1,2] = ' '

WAIT WINDOW 'My array 1,1) = ' + Thisform.Myarray[1,1]
WAIT WINDOW 'Length = ' + STR(Alen(Thisform.Myarray,1))

Second last command here is fine so it is initializing the array ok.
The last command gives an error :
Variable MyArray not found.

The alen with a Thisform.MyArray seems to be causing confusion.
Is there some other syntax that's rewuired here.

regards,

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform