That makes sense. No wonder I’m confused. :)
But if I convert:
[
[ID,First Name,Last Name],
[5912029,Sannyasin,Siddhanathaswami],
[6015906,Mayuran,Sokkan]
]
to an array of objects:
[
{“ID”:”5912029","First Name”:”Sannyasin”},
{“ID”:”6015906","First Name”:”Mayuran”}
]
Does than mean I can access the “First Name” value by the “ID”? Somehow?
This is kind of like doing a "Selection to JSON”, parsing that into an object,
then trying to find a “record” in the resulting object.
Sannyasin Siddhanathaswami
On Nov 25, 2018, 10:44 PM -1000, 4D iNug Technical <[email protected]>,
wrote:
you are confusing property names and array positions.
$lastName:=$convertedObject[“ID”][“6015906”][“Last Name”]
this would infer
{"ID":{"6015906":{"Last Name":__here_}}}
if the target is
[
[ID,First Name,Last Name],
[5912029,Sannyasin,Siddhanathaswami],
[6015906,Mayuran,Sokkan]
]
then the notation should be
$convertedObject[2][2] //Sokkan
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************