Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I'm loosing a VFP - VB battle
Message
From
08/03/2000 16:05:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00342582
Message ID:
00343443
Views:
42
Thanks, David-

Have been pretty uninterested in this, frankly, but I'll throw in your suggestions and try it out. Thanks. Oh, and yeah, we're coming about 1/2 as fast as the straight-VB solution.

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform