Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I'm loosing a VFP - VB battle
Message
 
 
To
08/03/2000 12:40:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00342582
Message ID:
00343369
Views:
38
Nancy,

This line of code from your solution:

lcName = RTRIM(STRTRAN(CHRTRAN(CHRTRAN(lcName, CHR(10), ' '), CHR(13), ' '), ' ', ' '))

would be faster done like this:

vfCRLF = chr(13) + chr(10) && don't use #define which is going to at runtime redo the concatenation over and over

lcName = RTRIM(STRTRAN(CHRTRAN(lcName, vfCRLF, ' '), ' ', ' '))

There are some other optimizations that could be done if VFP is proving to be way slower than VB.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform