Posted: Thu Feb 06, 2014 11:08 am Post subject: CONCATENATE MULTIPLE ROWS into a SINGLE VARIABLE
Novice
Joined: 06 Feb 2014 Posts: 20
Environment tree consists of multiple quantities containing a value
Environment
Variable
Data
Data
Data
Data
.
.
.
Data
How can I concatenate all Data entries into a single variable ???
i.e;
Environment.Variable.ConcatenatedData = CONCAT(Environment.Variable.Data[1] : Environment.Variable.Data[n] )
Posted: Thu Feb 06, 2014 11:33 am Post subject: Re: CONCATENATE MULTIPLE ROWS into a SINGLE VARIABLE
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
tigerstone wrote:
How can I concatenate all Data entries into a single variable ???
With looping code similar to that which you've posted. Note that using a reference will perform much better than using an index as your sample code displays. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum