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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing 'cent' symbol - chr(155) ???

Status
Not open for further replies.

msellers

Programmer
Dec 11, 2000
2
US
Is it possible in FP 2.5 to print (with @ say) the 'cent' symbol (asc 155)?? I'm having trouble finding info. on this.
 
Try this:

@ 1,1 say '50' + chr(155) font 'Foxfont'

The important thing to note here is that you need to use a font that will support that symbol. You can use the 'Character Map' to verify which ones to use.
 
I tried this: @ 1,1 say '50' + chr(155) font 'Foxfont'
and it didn't work...

I'm trying to print this in an FP2.5 MS-DOS application. According to the 'minimal' help file with FP 2.5... The FONT clause is ignored in FoxPro for MS-DOS.

Any other suggestions?
 
FP 2.5 is a DOS version only. You must have the font with the Cent sign loaded i hte printer and That font active. ( or know the escape codes the change it ti that printer font). After you have the correct printer font loaded in the printer you just do a
@... Say ... chr(155)
[red]no font parameter required[/red] David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top