Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Do This With A JOIN?
Message
De
04/01/2006 04:30:36
 
 
À
03/01/2006 21:04:11
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01081733
Message ID:
01083025
Vues:
12
>Hi Fabio
>
>>>I mean is this...
>>>
>>>
PRIVATE m.lcCurrentBuffer
>>>STORE "          " TO m.lcCurrentBuffer
>>>
>>
>>>Better than just this?
>>>
>>>
STORE "        " TO m.lcCurrentBuffer
>>
>
>It is not good enough to check one line at a time.
>
>Is this...
>
>
PRIVATE lcCurrentBuffer
>STORE "          " TO lcCurrentBuffer
>
>Better than just this?
>
>
STORE "        " TO lcCurrentBuffer
>
>If so, then since the store results in a private variable, no need to do...
>
PRIVATE lcCurrentBuffer
>
>Si o no? ;)

No. PRIVATE line is necessary.
A:
PRIVATE pippo
STORE "        " TO pippo
RELEASE pippo
vs

B:
STORE "        " TO pippo
RELEASE pippo
B: is slower and bad

Bad programming because it can overwrite a private variable on the stack
Slower, because VFP has to look for in the stack if a private variable exists,
and later it has to define the private variable.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform