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

List of Crystal Constants? Ex: crBold

Status
Not open for further replies.
Dec 27, 2007
56
US
I know I had a link to a complete list of Crystal constants, and I can't find it. I'm specifically looking for a constant to set the font size depending on the value in a field, but would love to have the whole list. They don't seem to be accumulated in one place in online help, and a search of BO's web site actually yields no results. (!)
Thanks!
 
If you right-click on a field and choose 'Format Field', then you can choose the 'Font' tab and control the size. That's the normal method. I've never seen a list of Crystal constants: if it exists then someone should post it as a FAQ.

PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
As described the font size for a specific field can be controlled by adjusting the tab for font size using a formula, for example:

if (length(trim({table.textfield})) > 20 then 8 else 10

Also, as for a list - I only have a few jotted down, perhaps other people could add to them:

//Style

crRegular
crBold
crItalic
crBoldItalic

//Colour

crSilver
crGray
crBlack
crMaroon
crGreen
crOlive
crNavy
crPurple
crTeal
crRed
crLime
crYellow
crBlue
crFuchsia
crAqua
crWhite
crNoColor

'J
 
The corresponding constants (when they exist as distinct constants) appear at or near the top of the functions list in the formatting formula area. No need really to keep a separate list.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top