Hi all - 2 quick questions:
I am using Firefox 2.9 and PB 9 - in the FF_WINMAIN function (that starts first when my program starts), I am trying to define a global string array that I can use throughout my program but I can't find the correct syntax (and yes, I have looked in the help files)...I'm sure it's something idiotic that I am not seeing... I am trying to use:
Global thearray (1 To 20,1 To 20,1 To 4) As String
Why doesn't this line work?
Once this begins working, I'll simply be reading and putting values in the variable using lines like:
thearray(2,5,2)="123"
I was able to get these lines to compile:
Dim thearray(1 To 20,1 To 20,1 To 4) As Global String
thearray(1,1,1)="bingo"
but further in the program when I try to "msgbox thearray(1,1,1)", it wants me to dimension the variable (like it's not global) - arg!
Any ideas how I can dimension this string array variable to be used globally in my little program?
I also need to dimension two string variables (non-arrayed) globally as well if you can comment on that.
Thanks
Patrick
I am using Firefox 2.9 and PB 9 - in the FF_WINMAIN function (that starts first when my program starts), I am trying to define a global string array that I can use throughout my program but I can't find the correct syntax (and yes, I have looked in the help files)...I'm sure it's something idiotic that I am not seeing... I am trying to use:
Global thearray (1 To 20,1 To 20,1 To 4) As String
Why doesn't this line work?
Once this begins working, I'll simply be reading and putting values in the variable using lines like:
thearray(2,5,2)="123"
I was able to get these lines to compile:
Dim thearray(1 To 20,1 To 20,1 To 4) As Global String
thearray(1,1,1)="bingo"
but further in the program when I try to "msgbox thearray(1,1,1)", it wants me to dimension the variable (like it's not global) - arg!
Any ideas how I can dimension this string array variable to be used globally in my little program?
I also need to dimension two string variables (non-arrayed) globally as well if you can comment on that.
Thanks
Patrick
Comment