<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 May 2016 16:03:00 Z</lastBuildDate><pubDate>11 May 2016 19:14:00 Z</pubDate><description>Hello All:&#13;
&#13;
I have an Associative Array with Structures and I have problem when I try to access an element which doesn't exist. For example, if I do;&#13;
myArray[mykey].member&#13;
gives me an error if mykey is not yet in the array...&#13;
&#13;
The problem, however, is how to check if the key element exist before trying the access. I'm using a FOR EACH loop with Key = mykey and checking if there is any iteration after it, but I would like to have a more efficient way to check if the element exist.&#13;
&#13;
I would appreciate any help or comment.&#13;
&#13;
Thanks in advance&#13;
Gus</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp</link><title>[WD20] How to check if an element exist in an Associative Array with structures</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/57610-wd20-how-check-element-exist-associative-array-with-57680/read.awp</comments><pubDate>17 May 2016 16:03:00 Z</pubDate><description>Hi Gus&#13;
&#13;
With Associative Array with structures I have been working like this :&#13;
&#13;
if myAssArray[idx]..Occurence = 0 then&#13;
// T…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57680/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57680/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57655/read.awp</comments><pubDate>16 May 2016 10:00:00 Z</pubDate><description>Hi Gus,&#13;
&#13;
If it becomes too complicated to prevent an error you can always use "WHEN Exception IN" to handle it.&#13;
Other option …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57655/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57655/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57651/read.awp</comments><pubDate>15 May 2016 19:42:00 Z</pubDate><description>No problebly not&#13;
&#13;
You would have to loop through&#13;
&#13;
FOR EACH ELEMENT OF Associative array&#13;
&#13;
END&#13;
&#13;
just type in for in de cod…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57651/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57651/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57614/read.awp</comments><pubDate>11 May 2016 21:03:00 Z</pubDate><description>Hi Gus,&#13;
&#13;
I use :&#13;
&#13;
IF NOT myArray[MyKey]..empty then&#13;
// do your stuff&#13;
END&#13;
&#13;
but I don't know if it is usable with associat…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57614/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57614/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57613/read.awp</comments><pubDate>11 May 2016 20:56:00 Z</pubDate><description>Hello Gus,&#13;
&#13;
Something like this :&#13;
&#13;
I am look for a Techs Name by a job number. Seek the element is the array first nRow is i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57613/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57613/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57612/read.awp</comments><pubDate>11 May 2016 20:54:00 Z</pubDate><description>More code please! :xcool:</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57612/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with-57612/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57610-wd20-how-check-element-exist-associative-array-with/read.awp">[WD20] How to check if an element exist in an Associative Array with structures</source><title>Re: [WD20] How to check if an element exist in an Associative Array with structures</title></item></channel></rss>
