The information in this article applies to:
SYMPTOMSAn application developed in Microsoft FORTRAN that uses a complicated expression that involves intrinsic functions to calculate substring indexes generates incorrect results. RESOLUTIONSimplify the expression used to specify the substring index by using one or more temporary variables to store intermediate results of the computation. STATUSMicrosoft has confirmed this to be a problem in FORTRAN versions 4.0, 4.01, 4.1, 5.0 and 5.1 for MS-DOS and versions 4.1, 5.0, and 5.1 for OS/2. This problem was corrected in FORTRAN PowerStation. MORE INFORMATIONThe following program writes the string "B" to the display instead of the correct string "BCDEF." Sample Code
The following code demonstrates one solution to the problem.
Sample Code
Additional query words: 4.00 4.01 4.10 5.00 5.10
Keywords : |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |