J
JF
Trying to create a variable array of SMS collection rules:
Dim aRules() as Array, Dim oRule as Object
Index = 0
sub proceedure
oRule.XXX
oRule.XXX
ReDim Preserve aRules(i)
aRules(i) = oRule (error here!!!)
i=i+1
Error: InvalidCastException "Specified cast is not Valid"
Works in vbscript.
Dim aRules() as Array, Dim oRule as Object
Index = 0
sub proceedure
oRule.XXX
oRule.XXX
ReDim Preserve aRules(i)
aRules(i) = oRule (error here!!!)
i=i+1
Error: InvalidCastException "Specified cast is not Valid"
Works in vbscript.