Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error : Not an array
Message
From
03/07/2001 19:42:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00526286
Message ID:
00526517
Views:
16
local myArray

creates a memvar called myArray with a value of .f.

This is not an array.

dimension myArray[1]

converts it from a memvar to an array

>James, thanks for your solution,
>
>Why do you also need to say its an array... you dont need to do this with Numeric and Character or logical variables. 'Localizing ' them seems to be enough.
>
>regards,
>
>Gerard
>
>
>>Gerard,
>>
>>You must declare the variable local
>>
>>
LOCAL myArray
>>
>>AND declare it to be an array,
>>
>>
DIMENSION myArray( 1 )
>>
>>There are a number of ways of doing both at the same time, but I like the two-step process to make certain I don't forget to do it.
>>
>>Regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform