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

Prgrammatically set text to Bold.

Status
Not open for further replies.

TaTips

Programmer
Oct 29, 2003
25
GB
HI:

How can I set a text object to BOLD programmatically.

Thanks.
Ta.
 
I'm not sure I understand the question. If you mean that you want a field to be bold for some values and not others, you can do this using the field format. Right-click and choose [Format Field]. Choose the [Font] tab and then set a formula for [Style].

Madawc Williams (East Anglia)
 
To clarify:

IF {tab_a.field1} = 'A'
THEN
crbold

NOTE:

I cant seem to get "crbold" to work. Is "crbold" valid. it seems to compile but text stays the same.

Thanks for the suggestion by the way.
Ta.
 
Are you placing your formula in the right area, e.g., format field->font->style?

-LB
 
My point is that you cannot programatically change the font style of a text object, but you can if it is a database field that has a data type of text.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top