ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Reflection functions
  • Properties specific to Variable Description variables
  • Operation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Variable Description type is used to get information about a class or structure member.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Retrieves the definition of type class or structure of variable x
MyDefinition is Définition
MyDefinition = GetDefinition(x)
// Retrieves the description of nValue member of class or structure
m is Variable Description
m = MyDefinition.Variable["nValue"]
Remarks

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.

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: 03/10/2023

Send a report | Local help