Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scoping of Variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00011488
Message ID:
00011615
Vues:
45
>>I will apreciate any sugestion, thanks in advance.
>>>P.S. This is driving me nuts.
>>
>>pass the array by reference.
>Thanks dave, but I did that, let me explain you what I have
>in detail, maybe you can give me an idea. I vave this
>array aMyArray(1), at the beginning it is empty, I set
>my UDFPARMS TO REFERENCE as you mentioned, then I call
>the form with DO oMyform WITH aMyArray, I receive the
>array in a PARAMETER at the init method of the form,
>I store that value in a property of that form,
>this works fine to use the values of that array
>in all the methods and procedure of that form, but if
>I want to change the size of aMyArray like
>DIMENSION aMyArray(4), and store new values in it to
>keep that values after releasing the forms I can't do it,
>in 2.6 this is really easy, I don't see why in the new version
>they don't let you do that, the only way that I seems to
>do it is making my form compatible with the ugly foundation
>read setting my window type to READ MODAL.
>Thanks anyway for trying to help.

try 'wrapping' it in a program. base form calls program which calls oMyform. in the program, declare private array(s). copy original array into private array and pass private array. when oMyform is exited, control will be here. take the array(s) and update the originals. release oMyform and you're set...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform