Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getwordnum and the carriage return character
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01416171
Message ID:
01416177
Views:
43
>>This is odd, to say the least. The next line prints 13, indicating that the carriage return character is the last character of the third word. It should have been 108.
>>
? asc( right( getwordnum("huppel de puppel" + chr(13)+chr(10), 3 ),1 ) )
>>Is this a bug or is it by design? Who knows more?
>
>
>The 3th word is: "puppel" + chr(13)+chr(10) not just "puppel" :-) That is because default delimiter is space.
>Try:
>
>WAIT WINDOW getwordnum("huppel de puppel" + chr(13)+chr(10), 3 ) + [Test string]
>
Not according to the Help.

Getwordnum
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform