<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Oct 2016 14:47:00 Z</lastBuildDate><pubDate>8 Oct 2016 14:18:00 Z</pubDate><description>Hi All,&#13;
&#13;
I'm trying to use an array to build a csv file and get the error message&#13;
&#13;
"Attempt to access element2. Number of Elements in Array Dimension 1:1"&#13;
&#13;
I am new to arrays. My code is out of the help file:&#13;
&#13;
MyString1 is string MyString1 = "%1,%2,%3,%4,%5,%6,%7,%8" MyArray is array of 1 string MyArray[1] = QRY_EXPORT.AssessmentIDonDevice MyArray[2] = QRY_EXPORT.CountryID MyArray[3] = QRY_EXPORT.RecordName MyArray[4] = QRY_EXPORT.LocationName MyArray[5] = QRY_EXPORT.LocationType MyArray[6] = QRY_EXPORT.Latitude MyArray[7] = QRY_EXPORT.Longitude MyArray[8] = QRY_EXPORT.RecordLocation MyResult is string = StringBuild(MyString1, MyArray)&#13;
This is abbreviated; there are 197 items in the array.&#13;
&#13;
Thanks for any help.&#13;
&#13;
Pete</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp</link><title>WM 20: using arrays to build CSV files</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/59885-20-using-arrays-build-csv-files-59909/read.awp</comments><pubDate>10 Oct 2016 14:47:00 Z</pubDate><description>Hi. For me this code works&#13;
&#13;
MyString1 is string&#13;
MyString1 = "%1,%2,%3,%4,%5,%6,%7,%8"&#13;
&#13;
MyArray is array [8] string&#13;
MyArray…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59909/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59909/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp">WM 20: using arrays to build CSV files</source><title>Re: WM 20: using arrays to build CSV files</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59896/read.awp</comments><pubDate>9 Oct 2016 18:11:00 Z</pubDate><description>Thanks for the ideas Stefan and Ruben...I couldn't get either to work so went back to the long way of making strings.&#13;
&#13;
Cheers&#13;…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59896/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59896/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp">WM 20: using arrays to build CSV files</source><title>Re: WM 20: using arrays to build CSV files</title></item><item><author>Dave Langley</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59894/read.awp</comments><pubDate>9 Oct 2016 08:32:08 Z</pubDate><description>MyArray is array of 197 strings</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59894/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59894/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp">WM 20: using arrays to build CSV files</source><title>Re: WM 20: using arrays to build CSV files</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59890/read.awp</comments><pubDate>8 Oct 2016 15:50:00 Z</pubDate><description>Hi.&#13;
&#13;
Try to define your array like arrMyArray is array of 8 by 1 string.&#13;
&#13;
Too you can try to use arrayadd to populate your a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59890/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59890/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp">WM 20: using arrays to build CSV files</source><title>Re: WM 20: using arrays to build CSV files</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59889/read.awp</comments><pubDate>8 Oct 2016 15:25:00 Z</pubDate><description>Hi Pete,&#13;
&#13;
if the order of the items is the same as in the Query, I should use something like&#13;
from the top of my head, not tes…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59889/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files-59889/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59885-20-using-arrays-build-csv-files/read.awp">WM 20: using arrays to build CSV files</source><title>Re: WM 20: using arrays to build CSV files</title></item></channel></rss>
