<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>26 Nov 2017 19:54:00 Z</lastBuildDate><pubDate>24 Nov 2017 06:49:00 Z</pubDate><description>Hi,&#13;
&#13;
Is it possible to create complex Variant in windev? Would it be possible to create a variant with the following structure? e.g. Where "itinerary Days" was nested within the top element and could have a variable number of elements? I understand how to create a variant with a flat structure but how to create a more complex one? The end goal here is to write code to read data and create a variant structure and then use "VariantToJSON" to create the JSON structure.&#13;
&#13;
{&#13;
"id": 540,&#13;
"title": "14-Day Ultimate Namibia Safari",&#13;
"itinerary_days": [{&#13;
"DayNbr": 1,&#13;
"Title": "Day 1"&#13;
}, {&#13;
"DayNbr": 2,&#13;
"Title": "Day 2"&#13;
}, {&#13;
"DayNbr": 3,&#13;
"Title": "Day 3"&#13;
}, {&#13;
"DayNbr": 4,&#13;
"Title": "Day 4"&#13;
}, {&#13;
"DayNbr": 5,&#13;
"Title": "Day 5"&#13;
}, {&#13;
"DayNbr": 6,&#13;
"Title": "Day 6"&#13;
}, {&#13;
"DayNbr": 7,&#13;
"Title": "Day 7"&#13;
}, {&#13;
"DayNbr": 8,&#13;
"Title": "Day 8"&#13;
}, {&#13;
"DayNbr": 9,&#13;
"Title": "Day 9"&#13;
}, {&#13;
"DayNbr": 10,&#13;
"Title": "Day 10"&#13;
}, {&#13;
"DayNbr": 11,&#13;
"Title": "Day 11"&#13;
}, {&#13;
"DayNbr": 12,&#13;
"Title": "Day 12"&#13;
}, {&#13;
"DayNbr": 13,&#13;
"Title": "Day 13"&#13;
}, {&#13;
"DayNbr": 14,&#13;
"Title": "Day 14"&#13;
}]&#13;
}&#13;
&#13;
&#13;
Thanks!&#13;
&#13;
steve</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure/read.awp</link><title>Complex Variant structure</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/63453-complex-variant-structure-63476/read.awp</comments><pubDate>26 Nov 2017 19:54:00 Z</pubDate><description>Hi Steve,&#13;
&#13;
vVar is Variant&#13;
vVar.id=540&#13;
vVar.title="14-Day Ultimate Namibia Safari"&#13;
&#13;
vDays is Variant&#13;
FOR i=1 TO 14&#13;
vDays…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63476/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63476/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure/read.awp">Complex Variant structure</source><title>Re: Complex Variant structure</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63463/read.awp</comments><pubDate>24 Nov 2017 16:55:00 Z</pubDate><description>Thanks guys!&#13;
&#13;
Derek, I really like your way for what I need to do. The actual task is going to be to present in JSON a top lev…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63463/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63463/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure/read.awp">Complex Variant structure</source><title>Re: Complex Variant structure</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63459/read.awp</comments><pubDate>24 Nov 2017 11:43:00 Z</pubDate><description>Steve&#13;
I do something slightly different...&#13;
&#13;
PROCEDURE Test(ps_ID is string,ps_Title is string) //Structure = columns returned…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63459/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63459/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure/read.awp">Complex Variant structure</source><title>Re: Complex Variant structure</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63458/read.awp</comments><pubDate>24 Nov 2017 10:58:00 Z</pubDate><description>Steve,&#13;
&#13;
Something like this will work for holding the data.&#13;
But I don't know if the JSON functions support this complexity...…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63458/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure-63458/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63453-complex-variant-structure/read.awp">Complex Variant structure</source><title>Re: Complex Variant structure</title></item></channel></rss>
