Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FF,LF and CR chars
Message
From
21/04/2015 10:47:16
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618860
Message ID:
01618863
Views:
53
>My code stores a singe character to ff
>
>How do I test ff for FF, LF and CR characters
>
>Simple I know
>
>One of those days
>
>Colin

in general $ or AT()
lcString =`'ABCD'
?'A'$lcString
?'a'$lcString
?at('A',lcString)
?at('a',lcString)
for CR,LF etc you can use CHR() or the 0h Syntax
lcCHR = CHR(13)
lcCHR2=0h0D
?lcCHR=lcCHR2
For the codes see http://en.wikipedia.org/wiki/ASCII
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform