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
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Apple Watch This property is now available in Apple Watch 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.
Android This property is now available for Android applications.
Android Widget This property is now available in Android widget mode.
New in version 22
WINDEVJava This property is now available for Java applications.
Android This property is now available for Android applications.
Android Widget This property is now available in Android widget mode.
WINDEVJava This property is now available for Java applications.
Android This property is now available for Android applications.
Android Widget This property is now available in Android widget mode.
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. You can iterate through the array using FOR EACH.
<Variant>: Character string
Name of the Variant variable to be used.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment