Common Error Messages
Described below are some of the more common errors you may encounter when designing a report.
- Co_typ_match with unknown types
- The [Check] button will display this error if you try to print a variable using a Formula with the wrong Data Type. Usually, the variable will be a time or date and the Data Type in the Formula will be Value. The Data Type should be String for time and date variables.
- You will also see this error if you hard-code a date or time in a function in a line of Code or Formula without enclosing the date or time in inverted commas. For example, the following Formula with incorrect syntax will generate this error:
- DateDiff(01/01/2008,vrInvoice.InvDate);
The correct syntax is:
- DateDiff("01/01/2008",vrInvoice.InvDate);
- Field without a set
- You will be shown this message by the [Check] button if you have placed a field in the Report Header or Report Footer sections. You cannot place fields in these sections.
- Got STRING wanted VAL
- The [Check] button will display this error if you try to print a variable using a Formula with the wrong Data Type. Usually, the variable will be a string and the Data Type in the Formula will be Value. The Data Type should be String for string variables.
- Invalid name
- The [Check] button will give you this message if you have added a non-existent field to the 'Layout' card of the report, or used a non-existent field somewhere on the 'Data' card. The most usual cause is that you have attempted to add some text to the report output, but have used the [Field] button instead of the [Text] button by mistake. Remember too that field names are case-sensitive.
- Mark something first
- When adding an object of any kind to the 'Layout' card, you must first select the section or Line where the object is to appear. If you do not select a section or Line, you will be given this message.