Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating str variable collection
#1
Hi Gintaras,
I was wondering how to write into a str collection
For example

say str is samplecollection

I eventually want it to be filled like this...

Code:
Copy      Help
str samplecollection=
samplevar1
samplevar2
samplevar3
samplevar4

However, I won't know these ahead of time or the total number.

I geuss as each variable gets a value, I could then match it to a pre-defined collection
such as...


Code:
Copy      Help
specificvar1=samplevar1
specificvar2=samplevar2
str samplecollection
samplevar1
samplevar2
samplevar3
samplevar4


Since I won't know the total number, I could create a whole bunch extra and then ignore them if they are zero in value.

Thanks for any tips!!!!
Stuart
#2
Quote:I geuss as each variable gets a value, I could then match it to a pre-defined collection
such as...


Code:


specificvar1=samplevar1
specificvar2=samplevar2
str samplecollection
samplevar1
samplevar2
samplevar3
samplevar4





Since I won't know the total number, I could create a whole bunch extra and then ignore them if they are zero in value.

I don't understand this.

Why not ARRAY(str)?


Forum Jump:


Users browsing this thread: 1 Guest(s)