BUG: Dynamic Array Element in OCT$/HEX$ Return Bad If Compiled (37320)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q37320 SYMPTOMS
The OCT$ and HEX$ functions return erroneous results when the
following three conditions are met:
- The parameter passed to OCT$ or HEX$ is an array element.
- The array is dynamic.
- The program is compiled.
The code sample below demonstrates the problem.
Microsoft has confirmed this to be a bug in the compiler in
QuickBasic Version 1.00 for Macintosh. We are researching this problem
and will post new information as it becomes available.
The OCT$ and HEX$ functions work correctly when run within the
QuickBasic environment. To work around this problem in the compiled
version, do any of the following:
- Assign the array element to a temporary variable and pass the
temporary variable to the OCT$ or HEX$ function.
- Make the array static.
- Pass the array element to the OCT$ or HEX$ function in an
expression, such as OCT$(array%(1)+null%).
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbbug KB37320 |
---|
|