Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting Down the Computer
Message
From
20/07/2001 17:58:19
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00532885
Message ID:
00533388
Views:
11
>And don't define CR, use local variable instead... Learned recently this from George Tasker...

Thats a pretty definitive statement with barely anything to support it. Why use a variable? Can a variable be defined in one place and referenced many applications thousands of times? If its #DEFINEd in a Header file it can be, and guess what, the value of a CHR(13) is constant, there's really no reason to make it a variable. The only time it might cause a problem is when its used millions of times in a loop, the function call might add a wee bit of over head. Hardly the case in what Mike posted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform