Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slim Code - List of Shortcuts?
Message
From
01/07/2010 12:04:39
 
 
To
01/07/2010 11:53:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01471199
Message ID:
01471203
Views:
96
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform