PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
When used on Variant variables, the Member property is used to get the array of named elements.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVJava This property is now available for Java applications.
New in version 22
WINDEVJava This property is now available for Java applications.
WINDEVJava This property is now available for Java applications.
Example
v is Variant = JSONToVariant(JSON)
FOR EACH x OF v.Member
Trace("The member " + x.Name + " has the value " + x.Value)
END
jedi is JSON = [
{
"id": 5,
"name": "Luke Skywalker",
"pilotingScore": 98,
"shootingScore": 56,
"isForceUser": True
}
]
 
v is Variant = JSONToVariant(jedi)
Trace("In the Jedi JSON:")
FOR EACH x OF v..Member
Trace("The member " + x.Name + " has the value " + x.Value)
END
Syntax

Getting the array of named elements of a Variant variable Hide the details

<Result> = <Variant>.Member
<Result>: Array
Array of named elements. This array can be browsed via the FOR EACH syntax.
<Variant>: Character string
Name of the Variant variable to use.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment