At my workplace we have the following setup:
Navision 2009 with a native database.
We query this database from a VB6 application (only Select queries).
We use NODBC driver: "Microsoft Dynamics NAV Driver – 6.00.32012.00 NODBC.DLL 11-12-2010", via an ODBC system DSN.
We recently upgraded from Navision 3.7, where we used CODBC for connection to the (also native) database.
The connection from VB6 to the Nav2009 database works fine, but I have one question. This regards the handling of floating point numbers, that is, variables of type double in VB6.
In the old code as it was written for Nav 3.7 / CODBC it looks it was necessary to check for an accidental interchange between decimal separator and thousands separator. This was done by a simple check, something like: if number > 99999 then number = number / 100000. So it looks like that in the old code floating point numbers were transported as a text string. And as a consequence of that our VB6 code had to convert that to a double.
Unfortunately I can not test this any more because the Nav 3.7 database was already removed.
After we started using the NODBC driver, I am under the impression that the driver is capable of returning floating point numbers (doubles in VB6). If that is correct, that would mean that I can remove the comparison to >= 99999.
Can anybody shed some light on this?
Regards, Rudolf Stammis
Software engineer
0