Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array is not an Array?
Message
De
07/05/1999 16:25:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215926
Message ID:
00216236
Vues:
29
>>>Hello,
>>>I'm trying to fill a combobox with an array in the init event of the form. First I create an array, then I change the rowsourcetype to 5 and the rowsource to 'myArrayName'.
>>>But I get an errormessage: "'myArrayname' is not an Array".
>>>I can't figure out, where the problem is, because if I test the array (?myArrayName(1) etc.) there seems to be no problem with the array itself.
>>>Any ideas what I'm doing wrong?
>>>Thank you for your time.
>>
>>
>>The array is probably being destroyed when it goes out of scope at the end of the Init. Make the array a form property.
>
>I understand. I tried now to make a property of the form (as a string), but how can I ensure, that this is an array? If I say DIMENSION myArray(10) it will give again the error "'MyArray' is not an array".


When you create the property, name it MyArray[1].
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform