Hi,
In my Globals sub I have declared a string like:
I am then setting the string from another sub like:
If I want to clear all the strings, what would be the best way in doing that?
Would I need to use a For loop like below or is there a better faster way?
In my Globals sub I have declared a string like:
B4X:
Dim MyString(200) as String
I am then setting the string from another sub like:
B4X:
MyString(1) = "one"
MyString(2) = "two"
MyString(3) = "three"
If I want to clear all the strings, what would be the best way in doing that?
Would I need to use a For loop like below or is there a better faster way?
B4X:
For i = 1 to 200
MyString(i) = ""
Next