ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
When used on Variant variables, the Member property is used to get the array of named elements.
Example
v is Variant = JSONVersVariant(JSON)
FOR EACH x OF v..Member
	Trace("Le membre " + x.Nom + " a la valeur " + x.Valeur)
END
jedi is JSON = [
	{
	"id": 5,
	"name": "Luke Skywalker",
	"pilotingScore": 98,
	"shootingScore": 56,
	"isForceUser": true
	}
]

v is Variant = JSONVersVariant(jedi)
Trace("Dans le JSON Jedi:")
FOR EACH x OF v..Member
	Trace("Le membre " + x.Nom + " a la valeur " + x.Valeur)
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: 09/24/2024

Send a report | Local help