BiggerBrother
Technical User
I have a number of arrays, all of which contain strings (approx 500). In a function, a new array is formed, which takes all these string values (all numeric), and converts them into integer arrays.
For example, one array is "2","1","23" which then converts to 2,1,23. This works fine in the application, however, when I build the .exe, I receive an error of: function call on left-hand side of assignment must return Variant or Object.
publice function StrToInt(StrArray() as string) as integer()
dim a as integer
redim StrToInt(ubound(StrArray))
for a = lbound(StrArray) to Ubound(StrArray)
StrToInt(a) = CInt(StrArray(a))
next a
end function
Thanks for any ideas or guidance.
BB
For example, one array is "2","1","23" which then converts to 2,1,23. This works fine in the application, however, when I build the .exe, I receive an error of: function call on left-hand side of assignment must return Variant or Object.
publice function StrToInt(StrArray() as string) as integer()
dim a as integer
redim StrToInt(ubound(StrArray))
for a = lbound(StrArray) to Ubound(StrArray)
StrToInt(a) = CInt(StrArray(a))
next a
end function
Thanks for any ideas or guidance.
BB