ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Reflection functions
  • Properties specific to Definition variables
  • Functions that use the Definition type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Definition type is used to find out the characteristics of a type:
  • simple type,
  • advanced type,
  • class,
  • structure,
  • combination,
  • enumeration.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Récupère la définition du type de x
d is Definition
d = GetDefinition(x)
// Affiche le nom du type de x
Trace(d.Name)
Properties

Properties specific to Definition variables

The following properties can be used to handle Definition variables:
Property nameType usedEffect
AssociationDefinitionArray of Definition variablesDefinition of associated types.
In this case, the Associated property of Property Description, Variable Description and Procedure Description variables returns True.
AttributeMappingCharacter string
  • Value of the <Mapping> extension attribute for a class or structure,
  • "" (empty string) if the attribute is not specified (or for other types).
This property is read-only.
AttributeNoteCharacter stringContent of the <Note> extension attribute.
This property is read-only.
AttributeSerializeCharacter stringSerialization name of the type according to its name and the <Serialize> attribute:
  • Name of the class, if the attribute is not specified,
  • Content of the string if the attribute contains a string,
  • "" (empty string) if the attribute is set to False or if the type is not a class.
This property is read-only.
BaseDefinitionArray of Definition variablesDefinition of base types.
DeclarationSyntaxSyntax DescriptionDescription of the declaration of global variables for windows, pages and reports.
This property is read-only.
DefinitionFamilyIntegerDefinition of base types.
This property is read-only.
Name Character stringName of type.
This property is read-only.
NullableBoolean
  • if the defined type can be Null,
  • False otherwise.
This property is read-only.
OptionArray of Option DescriptionDescription of options for a definition of combination.
Note: Information available both for combinations defined in the data model editor and for combinations defined in WLanguage.
ProcedureArray of Procedure DescriptionMethods of class if the defined type is a class.
The Associated property of Procedure Description variables returns False in the case of base class methods.
PropertyArray of Property DescriptionProperties of class if the defined type is a class.
The Associated property of Property Description variables returns False in the case of base class properties.
TypeIntegerWLanguage type.
This property is accessible in read-only mode. The available values are identical to the ones returned by TypeVar.
ValueArray of Value DescriptionDescription of values for a definition of enumeration.
Note: This information is available both for enumerations defined in the data model editor and for enumerations defined in WLanguage..
VariableArray of Variable DescriptionMembers of class or structure if the defined type is a class or a structure.
The Associated property of Variable Description variables returns False in the case of base class members.
Remarks

Functions that use the Definition type

GetDefinitionRetrieves the definition of element type.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help