Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Did I miss something?
Message
 
 
À
07/02/2002 11:22:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00615839
Message ID:
00616817
Vues:
25
Hi Bonnie,

You're right to my heart! I always use the second method, and I was trying to convince my colleague to use it too, but old habits die hard...

>Hey Jim, how ya doin'?
>
>This is getting off the topic a little, but it's something that's always bugged me ... is there any reason for using this:
>
>LOCAL lcAlias
>lcAlias = ALIAS()
>
>*--Do stuff
>
>* Now restore the work area
>IF NOT EMPTY(lcAlias)
>  SELECT (lcAlias)
>ELSE
>  SELECT 0
>ENDIF
>
>instead of this:
>
>LOCAL lnSelect
>lnSelect = SELECT()
>
>*--Do stuff
>
>* Now restore the work area
>SELECT (lnSelect)
>
>
>The second method seems much cleaner and simpler than the first, and yet I see the first one used frequently (which I change whenever possible to the second) ... is there any performance issue or is this just your personal preference?
>
>~~Bonnie
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform