Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cant get the Length of a Form array
Message
 
To
14/12/2002 19:17:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00733113
Message ID:
00733147
Views:
27
Aaln, thanks for your reply.

I think I have it sorted. At the start of my form init I has a command like:
Create Table Thisform.XXX free ....... . This created a form called Thisform.xxx and my subsequent commands were obviously referncing this file in some way.

Thanks again for your help.

Regards,

Gerard




>I just copied your code (cut and paste even) into the init of a grid on a plain form with a property MyArray[1,0] on it.
>
>It worked just like it should. No problems. Are you sure this code is exactly what you have in your form, and that this is where the error happens?
>
>Alan
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform