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

Displaying Non-standard characters in a Grid

Status
Not open for further replies.

ontsjc

Technical User
May 17, 2000
113
Hi,

I'm trying to display greek characters in a record in a grid. I'm using FoxPro Version 9 SP2 with xp.

Here's the issue. I have a dbf as a recordsource for a grid on a form. This dbf lists a series of default values and their descriptions for some statistical model inputs. I would like to display the proper greek character descriptors for these in the description field. So instead of having the descriptions displayed like this:

Water-filled Porosity (theta W)

I would like it displayed like this:

Water-filled Porosity (?W)

The label is listed in one field in the dbf and the corresponding value another.

Any help would be really appreciated. I've tried just copying the value off the system character map and setting the font in the grid, but it doesn't seem to work.
 
You can use the Symbol font to display Greek letters, or you can use a font such as Arial, and set the grid's FontCharSet property to 161 (Greek).

But as far as I know, there's no way of mixing Latin and Greek characters in the same cell, as in your example. In VFP, a control can only display one font and one character set at a time.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
You can use a container class in a grid column. Using a container in turn means you can use multiple controls in a grid column. Rest is your imagination to combine label, textbox controls in different fonts.

Cetin Basoz
MS Foxpro MVP, MCP
 
Thanks for the help. I'll continue to play around with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top