Introducing Basic Syntax

Possibly the moment you have been waiting for! Seagate introduces a brand . new formula syntax in this version of Seagate Crystal Reports, called Basic syntax. Crystal syntax is here to stay and offers over 50 new functions includ­ing control structures. But now you have a choice. For people already familiar with Visual Basic or other versions of Basic, this new formula syntax uses Visual Basic Script with specific extensions for reporting. This means you do not need to learn Crystal syntax; you can use the formula language that you already know.

What Is Basic Syntax?

Basic syntax is similar to Visual Basic Script and can be used as an alternative formula language in SCR. You now have the choice of using either Crystalsyntax or Basic syntax to write formulas. If you are already familiar with VB or Basic script you can use Basic syntax instead of Crystal syntax. Also, many new VB-like functions included in Basic syntax have been added to Crystal syntax in order to make formulas more powerful and versatile than ever in either syntax. Both Crystal syntax and Basic syntax formulas can co-exist in the same report. Basic syntax causes no degradation in compiling or processing time and does not require any additional libraries.

A note for those already familiar with the current formula language now re­ferred to as Crystal syntax: There are many new functions available in the Crystal syntax, including additional new control structures derived from Visual Basic. You can continue using the formula language you already know. A section later in this chapter explains some of the new functions and how you might use them.

In the Formula Editor, a drop-down list in the upper-right corner lets you select which syntax you want to use for each individual formula.

You can also set a default formula language to use under File, Options, on the Reporting tab.

About Author

Leave A Reply