In previous hours, the Crystal syntax was used for all formulas. However, formulas in Crystal Reports can be created, edited, and modified using one of two languages. The Crystal syntax is the most commonly used language, but the Basic syntax is also available. Both languages are equal in their functionality meaning that if something was added to Crystal syntax, it was also added to Basic. The reason for having a choice is for the report designer's comfort a designer can use whichever language he is more comfortable with. Syntax DifferencesThe Crystal syntax is most similar to the Pascal or Delphi programming languages. It's not exactly like Pascal, but if you're a Delphi developer or a longtime Crystal Report developer, this syntax is probably your first choice. The Basic syntax is most similar to Visual Basic as a programming language. If you're a Visual Basic developer, you'll likely find this syntax most beneficial. Some specific differences between the two languages are as follows:
Why Was the Basic Syntax Added?Many functions and operators provided by the Basic language would make Crystal Reports users more productive. By implementing the whole language, the existing Crystal syntax users could benefit from the new operators and functions and at the same time: Newer users who are familiar with the Basic language through other development endeavors could easily make the jump to creating formulas in Crystal Reports. Some of the functions and operators that were added as a result of the addition of the Basic syntax are
Selecting the Best Syntax for YouWhether you choose Basic or Crystal syntax, they are both equally capable of doing the job and there is no performance implication in making this choice. The decision is entirely based on the comfort level and familiarity of each language for report designers.
|