Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how could I get chr() like in FP 2.6 2

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi all

I would like to get chr() function get the same character as in FP2.6

Ex:
If I print chr(205) I can't get the same character as in FP2.6, could be someway I can get the same character??

Any help??


 
Hi,
Try CHR(150) or CHR(151)
By the way, you can find this out easily.. in the following way...
Create a myChr.PRG
FOR I=1 to 255
? i, CHR(i)
wait
ENDFOR

and in the command window give the command DO myChr
You can identify the number you want !

To know the difference between CHR 150 & 151 ...
in the command window, issue the command...
? REPLICATE(CHR(150),50)
? REPLICATE(CHR(151),50)

Hope this helps you


ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com

LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Just to clarify CHR() really does return the same character in all versions of FP / VFP, it's just that depending on the current font, it may look different <g>.

In FPW, MS supplied FOXFONT.FON for &quot;duplicating&quot; the DOS character set on screens, and FOXPRINT.TTF printing it.

The MS supplied TERMINAL.FON also uses the standard &quot;IBM DOS&quot; character set. There are others available on on the web - you just have to look for (and sometimes pay for) them.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top