Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual FreePro & VXB++ design debugging
Message
De
11/09/2013 17:04:14
 
 
À
11/09/2013 15:28:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01582710
Message ID:
01582906
Vues:
45
>>Do people use PRIVATE? I've never used it in my entire VFP career. I don't mind adding support
>>in there if it's required. But if only a few people use it, there are better ways to code.
>>I see no purpose or benefit to keeping it. Perhaps you can explain it to me.
>
>I use private memvars when I need to pass them in a SQL pass through command, like:
Update sometable set field1=10 where myfield = ?pcVvalue
>I was told that it's the best way, and sometimes necessary. I never questioned what I was told.


Okay. I've defined the concept of LGLOBAL and LTGLOBAL for Local-global and Local-thread-global, which mimic the PRIVATE behavior in a multi-threaded environment. I have set it up so PRIVATE will trigger ON COMPATIBILITY, but will automatically map to LGLOBAL as a globally scoped variable.
LGLOBAL = Global scope for the substitution of the formerly declared variable.
LTGLOBAL = Thread scope for the substitution of the formerly declared variable.
http://www.visual-freepro.org/wiki/index.php/Variable_Types

Thoughts?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform