Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display chr(21)
Message
 
To
09/11/2001 12:13:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00579731
Message ID:
00579765
Views:
26
>Hello all,
>
>I would like to be able to properly display ASII character 21 (decimal, hex value is 15) in an editBox. This character can be used as a segment terminator in EDI files.
>
>You can see what the character is supposed to look like by holding the ALT key down and typing 21 on the key pad. This method works in the command window, in MODIFY command edit window, or in an editBox. At least it does if the font is Courier New.
>
>However, the problem is when a string contains this value. I am using filetostr() to get an EDI file, and I would like to be able to display its contents properly in an editBox. This character is rendered as a square. If I display the string to the vfp screen, it is displayed as a thick vertical bar.
>
>I have tried various fonts. I am particularly puzzled why this character would be displayed 2 different ways, depending on how it gets to the editBox.
>
>< UPDATE >
>
>It really seems to depend on how the character gets into the string.
>
>
>x = "hello§world"  && by holding down alt-21
>thisform.edit1.value = x   && this shows properly
>x = "hello" + chr(21) + "world"
>thisform.edit1.value = x   && this does not
>
>
>Any ideas?
>
>Thanks,


You can try to define this special char.

#DEFINE CHR21 "§"

This way you can use :

x = "hello" + CHR21 + "world"


HTH ;-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform