Erel,
The following code does not work properly:
Dim firstVar As Double
Dim secondVar As Double
Dim result As Double
firstVar = 0
secondVar = 0
Try
result = firstVar / secondVar
Catch
result = 0
End Try
According to the semantics of the Try/Catch command in B4A, I should get a "0" in the variable result - instead I'm getting "NaN" - which is incorrect.
Please advise.
> Sonny <
The following code does not work properly:
Dim firstVar As Double
Dim secondVar As Double
Dim result As Double
firstVar = 0
secondVar = 0
Try
result = firstVar / secondVar
Catch
result = 0
End Try
According to the semantics of the Try/Catch command in B4A, I should get a "0" in the variable result - instead I'm getting "NaN" - which is incorrect.
Please advise.
> Sonny <