I’ve a global array: Check(), I pass its content to a local array: dummy(),
I redim the global array Check then… the local array is also redeemed
Is it normal?
These arrays have no more than 50 values so I think it won’t be significant difference. Either way I read in the forum (i do not remember exactly where) that split was much more efficient… or maybe I’m confused.
It is a more efficient way of working with parts of strings, and it’s a more efficient way to do string concatenation.
The code you posted will certainly work, and is easier to write and read, but it’s not the “right” way to do it. If any of your elements contain your join character, for example, it will break. And you can’t apply the same technique to any other type of array.
(Please take this in the spirit it’s intended, just as a sharing of experience.)
Thanks Kem, you’re right and probably I’ll change it to be more consistent. Although in that case there is no a problem with the join character because the strings are representing codes that are all the same length and contains only a-z/0-9.
Sure, and I am grateful you to spend your time to help me.
Emile , I have seen already in he xojo doc.
I don’t know the value of Nb, thus a() can’t be defined , i do a(999) this is static value , is it the best way ?
Dynamical resize is better.