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 Variable Description variables
  • Operation
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Variable Description type is used to get information about a class or structure member.
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 de la classe ou de la structure type de la variable x
MaDéfinition is Definition
MaDéfinition = GetDefinition(x)
// Récupère la description du membre nValeur de la classe ou de la structure
m is Variable Description 
m = MaDéfinition.Variable["nValeur"]
Properties

Properties specific to Variable Description variables

The following properties can be used to handle Variable Description variables:
Property nameType usedEffect
AssociatedBoolean
  • True if the variable comes from an associated element,
  • False if the variable comes from a base element.
This property is read-only.
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 string
  • Value of the <Note> extension attribute for a class or structure, or for their members.
  • "" (empty string) if the attribute is not specified (or for other types).
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.
AttributeUniqueKeyBoolean
  • True if the <Unique key> attribute is specified,
  • False otherwise.
This property is read-only.
DeclarationDefinitionDefinition of the class or structure that declares the member.
This property is read-only.
DefinitionDefinitionDefinition of member type.
This property is read-only.
GlobalBoolean
  • True if the member is global,
  • False otherwise.
This property is read-only.
InheritedBoolean
  • True if the member is inherited from a base class,
  • False otherwise.
This property is read-only.
NameCharacter stringMember name.
This property is read-only.
ShadowedBoolean
  • True if the member is shadowed by a member of a derived class,
  • False otherwise.
This property is read-only.
Remarks

Operation

The described member can be handled via indirection:
  • {<object>, <Variable Description>}
  • {<object>, <Variable Description>} = ...
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help