Bad Values When QLB Function Used as SUB Parameter (69157)
This article was previously published under Q69157
SUMMARY
If a FUNCTION returning a floating-point value is located in a Quick
library and is directly used as the second, third, or later parameter
of a SUB or FUNCTION in a program, then incorrect values may be passed
to the SUB or FUNCTION being called. This problem occurs only in the
QuickBasic environment.
Microsoft has confirmed this problem with Microsoft QuickBasic
versions 4.00, 4.00b, and 4.50. This problem does not exist with the
Microsoft Basic Professional Development System (PDS) versions 7.00
and 7.10.
When compiled and linked (with the FUNCTION in a .LIB library) into an
.EXE file, the same program will run correctly.
A simple workaround for this problem is to assign a temporary variable
to the return value of the Quick library function, then pass that
temporary variable when you invoke the SUB or FUNCTION.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB69157 |
|