Can you please explain what you want to do because with just your small code snippets we need to try to find it out.
I'm afraid that you are mixing up variables and the values of variables.
In your case you Dim favo(30) as String.
That means that you have defined 30 String variables with the same name but with an index going from 0 to 29. All these variables are EMPTY.
So before using them you must assign them values.
Like:
favo(0) = "gvvjjb"
favo(1) = "djdlk"
favo(2) = "bdbfkwn"
'etc
then you can use favo(0), favo(1) etc.
or
For i = 0 To 29
favo(i) = "Name" & i
Next
Then you have :
favo(0) = "Name0"
favo(1) = "Name1"
etc.
Where did you declare Dim favo(30) ?
- In Sub Process_Globals, the variables are accessible everywhere in the project
- In Sub Globals, the variables are accessible only in the Activity where they are declared.
- In any Sub, the variables are accessible insides the Sub where they are declared.
Did you have a look at the Documentation Wiki and the
Beginner's Guide ?
Best regards.