Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Literals of non-typable ASCII characters
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01158632
Message ID:
01158642
Views:
17
Alec,

>Does anyone have any suggestions on how to define a literal string of non-typable characters in code or as part of a header (.h) file?
>

Use the (new in VFP9) 0h prefix for binary string literals. Just specify your non-typeable characters as hex:
#IF VERSION(5) >= 900
  #DEFINE STRING_CONSTANT 0h0102+"ABCDEFG"+0h80+...
#ELSE
  #DEFINE STRING_CONSTANT CHR(1)+CHR(2)+"ABCDEFG"+CHR(128)+...
#ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform