<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Apr 2018 19:02:00 Z</lastBuildDate><pubDate>9 Apr 2018 03:20:00 Z</pubDate><description>Hi,&#13;
&#13;
I received error from WINDEV saying 'Member' property not allowed on 'array' variable.&#13;
Error code: 1102; Level: fatal error&#13;
&#13;
What i can do to fix it?&#13;
&#13;
Json :-&#13;
&#13;
[{"origin": false, "message_follower_ids": [3, 19], "create_date": "2018-04-06 09:01:36", "display_name": "SO003", "order_line": [6, 7], "invoiced_rate": 0.0, "write_uid": [1, "Administrator"], "currency_id": [1, "EUR"], "invoice_ids": [], "invoice_exists": false, "client_order_ref": false, "date_order": "2018-04-06 09:01:39", "partner_id": [19, "Chamber Works"], "message_ids": [274, 248, 247], "message_summary": " ", "amount_tax": 0.0, "procurement_group_id": false, "fiscal_position": false, "amount_untaxed": 377.5, "message_is_follower": true, "__last_update": "2018-04-06 11:04:13", "payment_term": false, "message_last_post": "2018-04-06 11:04:13", "company_id": [1, "YourCompany"], "id": 3, "note": false, "state": "manual", "paypal_url": false, "pricelist_id": [1, "Public Pricelist (EUR)"], "invoiced": false, "create_uid": [1, "Administrator"], "portal_payment_options": "", "section_id": [1, "Direct Sales"], "write_date": "2018-04-06 11:04:13", "partner_invoice_id": [19, "Chamber Works"], "user_id": [1, "Administrator"], "date_confirm": "2018-04-06", "amount_total": 377.5, "project_id": false, "name": "SO003", "partner_shipping_id": [19, "Chamber Works"], "product_id": [2, "On Site Monitoring"], "order_policy": "manual", "message_unread": false}]&#13;
&#13;
&#13;
sJSon is ANSI string = EDT_NoName1 ( which contain the Json )&#13;
let vjs=JSONToVariant(sJSon)&#13;
&#13;
&#13;
FOR EACH _Member OF vjs..Member&#13;
&#13;
IF _Member..Member..Occurrence = 0 THEN&#13;
Trace("The member " + _Member..Name + " has the value " +&#13;
Member..Value)&#13;
ELSE&#13;
Trace("The member " + _Member..Name + " has " +&#13;
Member..Member..Occurrence + ...&#13;
" other members")&#13;
BrowseVariantMembers(_Member)&#13;
END&#13;
END&#13;
&#13;
&#13;
PROCEDURE BrowseVariantMembers(x)&#13;
&#13;
FOR EACH _Member OF x..Member&#13;
IF _Member..Member..Occurrence = 0 THEN&#13;
Trace(RepeatString("--", StringCount(dbgInfo(dbgStack), CR)) + ...&#13;
"The member " + _Member..Name + " has the value " + _Member..Value)&#13;
&#13;
ELSE&#13;
Trace(RepeatString("--", StringCount(dbgInfo(dbgStack), CR)) + ...&#13;
"The member " + _Member..Name + " has " + _Member..Member..Occurrence + ...&#13;
" other members...")&#13;
&#13;
BrowseVariantMembers(_Member)&#13;
END&#13;
END&#13;
&#13;
&#13;
Regards,&#13;
&#13;
PETER ZHOU</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp</link><title>JSONToVariant</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65166/read.awp</comments><pubDate>9 Apr 2018 19:02:00 Z</pubDate><description>j1.json is:&#13;
&#13;
[{&#13;
"id":540,&#13;
"title":"14-Day Ultimate Namibia Safari",&#13;
"itinerary_days": [{ "DayNbr":1, "Title":"Day 1" },{"Da…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65166/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65166/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp">JSONToVariant</source><title>Re: JSONToVariant</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65164/read.awp</comments><pubDate>9 Apr 2018 18:59:00 Z</pubDate><description>Hi Peter&#13;
&#13;
Pls see below my sample as a hint about arrays' in json,&#13;
&#13;
//wd22&#13;
&#13;
sItin is Structure&#13;
DayNbr is int&#13;
title is St…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65164/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65164/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp">JSONToVariant</source><title>Re: JSONToVariant</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65163/read.awp</comments><pubDate>9 Apr 2018 18:49:00 Z</pubDate><description>Quote&#13;
steve erts&#13;
&#13;
Hi Peter,&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
I think you need to declare a Variant variable.&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
e.g.&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
vJS i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65163/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65163/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp">JSONToVariant</source><title>Re: JSONToVariant</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65165/read.awp</comments><pubDate>9 Apr 2018 18:33:00 Z</pubDate><description>Hi Peter,&#13;
&#13;
I think you need to declare a Variant variable.&#13;
&#13;
e.g.&#13;
&#13;
&#13;
vJS is Variant=JSONToVariant(sJSon)&#13;
&#13;
and then search…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65165/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65165/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp">JSONToVariant</source><title>Re: JSONToVariant</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65162/read.awp</comments><pubDate>9 Apr 2018 15:59:00 Z</pubDate><description>Quote&#13;
PETER ZHOU&#13;
&#13;
Hi,&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
I received error from WINDEV saying 'Member' property not allowed on 'array' variable.&#13;
&#13;
&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65162/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant-65162/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65155-jsontovariant/read.awp">JSONToVariant</source><title>Re: JSONToVariant</title></item></channel></rss>
