ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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 gets the characteristics of the following types:
  • 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.
Subscription-exclusive new feature
Android This type of variable is now available for Android applications.
Android Widget This type of variable is now available for Android widgets.
Note: This feature is only available in subscription-based versions, starting with WINDEV Suite 2025 - Update 3.
For more details, see Using new features exclusive to the subscription-based version of WINDEV Suite 2025.
Example
// Retrieves the definition of x type
d is Definition
d = GetDefinition(x)
// Displays the name of x type
Trace(d.Name)
Properties

Properties specific to Definition variables

The following properties can be used to define the characteristics of 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.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
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.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
AttributeNoteCharacter stringContent of the <Note> extension attribute.
This property is read-only.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
AttributeSerializeCharacter stringSerialization name of the type according to its name and the <Serialize> attribute:
  • Name of the class, if the attribute is not specified,
  • String content 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.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
BaseDefinitionArray of Definition variablesDefinition of base types.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
DeclarationSyntaxSyntax DescriptionDescription of the declaration of global variables for windows, pages and reports.
This property is read-only.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
DefinitionFamilyIntegerDefinition of base types.
This property is read-only.
NameCharacter stringType name.
This property is read-only.
NullableBoolean
  • True if the defined type can be Null,
  • False otherwise.
This property is read-only.
OptionArray of Option DescriptionDescription of options for a combination definition.
Note: This information is available for combinations defined both in the data model editor and in WLanguage.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
ProcedureArray of Procedure DescriptionClass methods if the defined type is a class.
The Associated property of Procedure Description variables returns False in the case of base class methods.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
PropertyArray of Property DescriptionClass properties if the defined type is a class.
The Associated property of Property Description variables returns False in the case of base class properties.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
TypeIntegerWLanguage type.
This property is read-only. The available values are identical to those returned by TypeVar.
ValueArray of Value DescriptionDescription of values for an enumeration definition.
Note: This information is available for enumerations defined both in the data model editor and in WLanguage.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
VariableArray of Variable DescriptionMembers of the class or structure if the defined type is a class or structure.
The Associated property of Variable Description variables returns False in the case of base class members.
Subscription-exclusive new feature
AndroidAndroid Widget This property is not available.
Remarks

Functions that use the Definition type

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

Last update: 10/07/2025

Send a report | Local help