HI guys,
Can anyone explain to me the following:
public function AvgLoss(returns as variant, arg2) as double
'supposed to check arg1
If (TypeName(Returns) <> "Range") Then
AvgLoss = "#N\A Arg1"
Exit Function
End If
'''''''''''''
The only thing i can't seem to comprehend is the typename bit. Can anyone rephrase the above lines as pseudo code for my tiny brain plz?
My current interpretation is: If the 'Returns' argument(type??) IS NOT equal to 'Range' then AvgLoss will equal to: "#N\A Arg1"
Please help.
Thank you!!!
E
Can anyone explain to me the following:
public function AvgLoss(returns as variant, arg2) as double
'supposed to check arg1
If (TypeName(Returns) <> "Range") Then
AvgLoss = "#N\A Arg1"
Exit Function
End If
'''''''''''''
The only thing i can't seem to comprehend is the typename bit. Can anyone rephrase the above lines as pseudo code for my tiny brain plz?
My current interpretation is: If the 'Returns' argument(type??) IS NOT equal to 'Range' then AvgLoss will equal to: "#N\A Arg1"
Please help.
Thank you!!!
E