Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The scope of Public variable
Message
De
07/10/1999 11:36:47
 
 
À
07/10/1999 10:07:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00273661
Message ID:
00273736
Vues:
21
>Hi,
> I have declare a public variable PUBLIC RxDATA in myclass.INIT. This variable will be used by a anywhere in myclass. It works fine at first. When I tried to subclass it become mysubclass, VFP give me error RxData is not found. I am suprise that why it happen? Therefore, I declare PUBLIC RxData in main.prg and it doesn't work too except I declare it in mysubclass.init again. Why ? What have I do wrong?
>
>Thank you

It is better to avoid public variables if possible. Why don't you describe what you are trying to do.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform