Crystal Built-in Constants

book list add book to my bookshelf create a bookmark purchase this book online

mastering crystal reports 9
Chapter 4 - Adding Business Logic with the Formula Workshop
Mastering Crystal Reports 9
by Cate McCoy and Gord Maric
Sybex 2003

The value of a constant never changes, so Crystal takes advantage of this fact to define several formatting and calculation values for you. You can use these constants in code or in drop-down boxes to make choices in the various Expert dialogs provided.

  • Boolean Conditions: on any change, on change to yes, on change to no, on every no, on next is yes, on next is no

  • Colors: Color constants appear in the Function Tree when a formatting formula is being coded; this is shown in Figure 4.40. To use any of the colors in code directly, preface the color name with a cr, for example, crRed.


    Figure 4.40. Color constants for formatting

  • Date Conditions: for each day, for each week, for each two weeks, for each half month, for each month, for each quarter, for each half year, for each year

  • First Day of Week: UseSystem, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

  • First Week of Year: UseSystem, FirstJan1, FirstFourDays, FirstFullWeek

  • Fonts: crRegular, crBold, crItalic, crBoldItalic

  • Time Conditions: for each second, for each minute, for each hour, for AM/PM

Use of content on this site is expressly subject to the restrictions set forth in the Membership Agreement
 
Conello © 2000-2003     Feedback


Mastering Crystal Reports 9
Mastering Crystal Reports 9
ISBN: 0782141730
EAN: 2147483647
Year: 2005
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net