Page 1 of 1
array initialization
Posted: Thu Aug 11, 2011 7:48 pm
by Tenaja
When working with string-heavy apps, the inability to initialize arrays is my biggest PB pet peeve. (Or, rather, the thing I miss most about C.) Please, please, please add it.
Code: Select all
TestStringArray.s() = ("one", "two", "three","middle", "four", "five", "six", "end")
TestNumArray.i() = (1, 2, 3, 0, 4, 5, 6, 0)
Re: array initialization
Posted: Thu Aug 11, 2011 7:54 pm
by STARGĂ…TE
Why do you post this topic again?
Prefill Array
Please read the answers there!
Re: array initialization
Posted: Fri Aug 12, 2011 1:11 am
by Tenaja
Because the term "prefill" is not something I have ever heard of! As such, that thread did not show up in my searches.
I have always called it "Initializing" the variable. Even the PB Help file describes it: "assign an initial value to the variable."
...but thanks for the link--Little John mentions it in conjunction with his preprocessor (pre-processor). I'll have to search for that tool...
In the meantime, it sounds like I, and others, would still like this feature. Why does PB give us the ability to initialize a single variable, but not an array???