Microsoft KB Archive/72422

= Correction for [NEAR] Example Calling FORTRAN from Basic PDS =

Article ID: 72422

Article Last Modified on 10/20/2003

-

APPLIES TO


 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q72422



SUMMARY
There is a documentation error in the Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 &quot;Microsoft Basic: Programmer's Guide&quot; on page 435 under the section &quot;Calling FORTRAN from Basic - Subroutine Call.&quot;

In the FORTRAN code given, the two integer parameters are declared as: INTEGER*2 I NEAR INTEGER*2 J NEAR Attempting to compile the FORTRAN code given will result in the warnings &quot;Variable INEAR declared but never used&quot; and &quot;Variable JNEAR declared but never used&quot; from the FORTRAN compiler. Because FORTRAN allows spaces in variable names, the compiler is parsing the incorrect code as two declarations for the variables INEAR and JNEAR.

To correct the error, place brackets around the &quot;NEAR&quot; keyword in both declarations, so that they read as follows: INTEGER*2 I [NEAR] INTEGER*2 J [NEAR] This information applies to Microsoft Basic Professional Development System versions 7.00 and 7.10 for MS-DOS and MS OS/2.

Additional query words: BasicCom SR# S910516-90

Keywords: KB72422

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.