Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slim Code - List of Shortcuts?
Message
De
01/07/2010 12:04:39
 
 
À
01/07/2010 11:53:26
Kevin Hickman
The Cadle Company
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01471199
Message ID:
01471203
Vues:
95
>Does anyone know where I can find I big list of shortcut functions/coding syntax to help slim down the code making it smaller and/or neater?
>
>For example:
>
>
>IF test = X .or. test = Y .or. test = Z    could be  IF INLIST(test,X,Y,Z) 
>or
>IF LEN(ALLTRIM(test)) = 0  could be IF EMPTY(test)
>
>
>There are always some we either don't know about, or haven't used in a long time and forget about...
>> IF LEN(ALLTRIM(test)) = 0  could be IF EMPTY(test)
That is not a 100% correct

(1) If a memo field contains only spaces, empty(memofield) is false

(2)
? LEN(ALLTRIM(chr(9))) && 1
?empty(chr(9)) && True
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform