Val() is a Jabaco framework function implemented in "Conversion.java".
You are right, it mostly/always returns 0.0
There seems to be a bug in the framework implementation.
I've tried to trace it down. It seems to be in VBVariant.doubleValue(), but I'm not sure.
For the time being, you could use CDbl() to circumvent the problem.
Add a new Module to your project with the following content:
|
Jabaco Source
|
1
2
3
4
5
|
Option Explicit
Public Function Val(expression As String)
Val = CDbl(expression)
End Function
|
This re-defines Val() and seems to work, at least for me ...
Greetings
A1880