Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Declaration
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00028187
Message ID:
00028227
Vues:
29
>>Hi to All,
>>
>>I'm kinda new with VFP5.0 but programmed in FPW2.6 before. How can I use a variable that I declare in and initialize in a form without having to declare as public? Please give me a small crash course here since I'm starting to be puzzled!
>>
>>Yves
>
>When you have the form in the designer, on the menu bar click Form. One of the items is "New Property". Make your variable a property of the form and it can be accessed throughout the forms methods.
>
>IF THISFORM.lValid && Logical type
>
>Hope this helps.
>
>Steve Despres
>EZ Data Inc
>sdespres@erols.com


Thanks for your help,

But that could be a rather long processus when you have many variables. I would rather declare it public than have no problem. The thing is that I would have thought that if I declare a LOCAL variable in the init event of a form or formset, all objects or events on that form would have access to it but it doesn't look like it is working like that.

Thanks,
Yves
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform