Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign an array to a property ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00286154
Message ID:
00286722
Vues:
17
>>Lets assume a method generates a local array myarray, and the resulting values should be stored in the forms property myproperty.
>>
>>I´m not having any luck with THISFORM.MYPROPERTY=@myarray.
>>
>>How to do it, ´cause surely there is a way?
>>
>>Regards
>>
>Hi Peter,
>
>In the form or class designer, create a new property like this:
>
>myarray[1, 1]
>
>You can then in the form's Init (or wherever it's needed), dimension and assign it the necessary values.

Yes sir, it works, and thank you very much!

I didn´t take the myarray[1,1] literally the first time ´round, used [1,3] instead, and got an invalid subscript error.

Turned around and followed your instructions to a T, and presto...

Thank´s

Peter
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform