ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Various properties
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.
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

Last update: 05/26/2022

Send a report | Local help