Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error : Not an array
Message
De
03/07/2001 19:42:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00526286
Message ID:
00526517
Vues:
17
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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform