Microsoft KB Archive/96942

= BUG: ISAM Statement in Quick Lib Causes Error: No Active Form =

PSS ID Number: 96942

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q96942



SYMPTOMS
If you use an ISAM statement in a Quick library, you may get error 431 &quot;No currently active form&quot; as shown below:

No currently active form

In Quick library module: TEST

At offset: 4B ERL: 0

This should not occur.



WORKAROUND
This problem does not happen when forms are showing.



STATUS
Microsoft has confirmed this to be a bug in both the Standard and Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
  Create a module named TEST.BAS that contains the following procedure: SUB Test (h%) MOVEFIRST h%  END SUB  To make the module into a library named TEST.QLB, from the Run menu, choose Make Library.  Exit from VBDOS.EXE, and from the command prompt, run these commands: PROISAMD VBDOS /L TEST.QLB   Enter the following program. DECLARE SUB Test (h%) TYPE MYTYPE i AS INTEGER END TYPE DIM mnew AS MYTYPE

h% = FREEFILE OPEN &quot;TEST.MDB&quot; FOR ISAM MYTYPE &quot;TESTPOST&quot; AS #h% INSERT #h%, mnew CALL Test(h%) CLOSE #h%  Press the F5 key to run the program. The call to Test is highlighted you get the incorrect error &quot;No currently active form.&quot;</ol>

Additional query words: VBmsdos buglist1.00 1.00 errmsg

Keywords: kbbug KB96942

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.