Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why GETWORDNUM and GetWordCount not support CHR(0)? BUG?
Message
 
 
To
30/08/2003 03:46:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00824750
Message ID:
00824788
Views:
34
Hi Fabio,

I think it's a bug.

>HI,
>
>On VFP, any string function support CHR(0).
>
>But GETWORDNUM and GetWordCount no.
>
>
>x='a'+CHR(0)+'b'
>? GetWordCount(m.x,CHR(0)),GETWORDNUM(m.x,1,CHR(0))
>? ALINES(ax,x,CHR(0)),ax[1],ax[2]
>
>
>Ill-fatedly, GETWORDNUM(m.dllcPrm, 1, CHR(0)) would be the best VFP function in order to extract one VFP string from one "zero string" of one DLL in C.
>
>
>? SUBSTR(m.dllcPrm,1,AT(CHR(0),m.dllcPrm)-1)
>
>
>Another question:
>because execution time for ( and m.dllcPrm long )
> SUBSTR(m.dllcPrm,1,AT(CHR(1),m.dllcPrm)-1)
>respect to
> GETWORDNUM(m.dllcPrm, 1, CHR(1))
>is faster,
>
>GETWORDNUM() it can be improved.
>
>Fabio
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform