J
Jean-Yves Simon
Hi all,
I have a little problem with an array. Here is what I am doing
Function foo(N1 As String) As String
Dim MyResult As String
Dim S1(64) As String
Dim S2(64) As String
Dim S3(64) As String
Dim S4(64) As String
Dim S5(64) As String
Dim S6(64) As String
Dim S7(64) As String
Dim S8(64) As String
'init array
S1(0) = "1110"
S1(2) = "0100"
.... and so on
When I do that, I have an error
"compile error"
invalid outside procedure"
I clicked on the help button to try to understand but I dont
get it why I have this error. Is this not a proper way to init
an array ?
I have a little problem with an array. Here is what I am doing
Function foo(N1 As String) As String
Dim MyResult As String
Dim S1(64) As String
Dim S2(64) As String
Dim S3(64) As String
Dim S4(64) As String
Dim S5(64) As String
Dim S6(64) As String
Dim S7(64) As String
Dim S8(64) As String
'init array
S1(0) = "1110"
S1(2) = "0100"
.... and so on
When I do that, I have an error
"compile error"
invalid outside procedure"
I clicked on the help button to try to understand but I dont
get it why I have this error. Is this not a proper way to init
an array ?