D
Dave Neve
Hi
The folowing bit of code taken from a help page surprised me and I need to
do some ground work.
I was surprised that MyCheck could be used twice as the results could have
conceivably been 'true' and 'false' (not the case here).
How is this possible or is it bad practice and to be avoided?
Thanks in advance
Sub ArrayOrNot()
Dim MyArray(1 To 5) As Integer, YourArray, MyCheck ' Déclaration des
variables.
YourArray = Array(1, 2, 3) ' Utilisation de la fonction Array.
MyCheck = IsArray(MyArray) ' Renvoie True.
MyCheck = IsArray(YourArray) ' Renvoie True.
MsgBox (MyCheck)
End Sub
The folowing bit of code taken from a help page surprised me and I need to
do some ground work.
I was surprised that MyCheck could be used twice as the results could have
conceivably been 'true' and 'false' (not the case here).
How is this possible or is it bad practice and to be avoided?
Thanks in advance
Sub ArrayOrNot()
Dim MyArray(1 To 5) As Integer, YourArray, MyCheck ' Déclaration des
variables.
YourArray = Array(1, 2, 3) ' Utilisation de la fonction Array.
MyCheck = IsArray(MyArray) ' Renvoie True.
MyCheck = IsArray(YourArray) ' Renvoie True.
MsgBox (MyCheck)
End Sub