Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Carriage return
Message
From
13/06/2005 08:21:24
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01022118
Message ID:
01022714
Views:
10
>Hi,
>
>>
>A little simpler and it should execute faster:
>
>#DEFINE CRLF CHR(13)+CHR(10)
>myString - cString1 + CRLF + cString2 + CRLF + cString3
>
>>>
>Simpler, yes. But faster ?
>
>Regards,
>Viv
Hi Viv,

Yes, both Hilmar and Borislav questioned my faster claim, so I ran a test using both approaches, plus Fabios suggestion of 0hD0A in place of the CRLF. The first time through, CHR(13) + CHR(10) took about twice as long as CRLF, which in turn took about twice as long as Fabio's solution. Repeating the test, they were all about equal. So, once its in memory, its irrelevant.

Regards,
Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform