Official Content

Uses type controls to check whether expressions, conditions, formulas, and rules are valid.

Values

No If you select NO for Check Type errors, the error message will be shown as a warning during specification, which will allow the program generation to continue.
Yes When an expression is not valid (i.e.: type mismatch, property not available for some control/platform, etc.), the object navigation will show an error message. This is the default value.

Scope

Generators: .NET, .NET Framework, Java
Level: Generator

Description

You can define whether you want to display Error or Warning messages when Type control is carried out.

The following table shows the messages that can be shown as warning when the property is set to "No".

spc0001 Control/object %1 not found/defined. Is it on the form?
spc0006 %1 objects do not have the ‘%2’ method.
spc0009 Type mismatch in %1: %2.
spc0010 Type mismatch in assignment: %1 = %2 (%3=%4).
spc0011 Type mismatch in rule %1.
spc0017 Expression %1 does not return a value.
spc0018 Property %1 is read only. It cannot be assigned.
spc0050 Inferred subtype %1, cannot be assigned.
spc0075 Operand %1 does not match the data type of %2 in the IN comparison.
spc0076 %1 must be a collection to be used as the right operand in an IN comparison.
spc0077 %1’s data type (%2) is not supported in an IN comparison.
spc0100 Item description in dynamic combo box %1 has an unsupported data type %2.
spc0101 Item value %1 does not match control %2 data type.
spc0109 %1 is (part of) a candidate key. It must be referenced in the transaction’s structure.
spc0112 Item value %1 for control %2 must be Character or VarChar.

Note: Cobol and RPG generators do not allow to show spc0001 as "warning".

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Build with this Only of the object.

See Also

Standard Functions property at Knowledge Base level
Warnings treated as errors property
Disabled warnings property

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant