BUG: Literal Parameters Not Passed to Nested Subprogram Calls (71243)






This article was previously published under Q71243

SYMPTOMS

Literals are not properly passed through nested SUBprogram calls in Microsoft QuickBasic versions 1.00, 1.00a, and 1.00b for Apple Macintosh Systems.

Microsoft is researching this problem and will post new information here as it becomes available.

MORE INFORMATION

The code example below demonstrates this problem:
    MySub1 1!

   SUB MySub1(x!) STATIC
      PRINT x!
      MySub2 x!
   END SUB

   SUB MySub2(y!)
      PRINT y!
   END SUB
				
This produces the following output; 1 is correctly passed at the first level call, but 0 is incorrectly passed at the second level call:

1
0


Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: kbbug KB71243