FIX: Public Form Procedures Not Available Outside Form

Q185570


The information in this article applies to:


SYMPTOMS

Public procedures (sub or function) in a Windows CE Toolkit for Visual Basic (VBCE) 5.0 form module are not available outside the form; they are not public to the entire project.


RESOLUTION

All procedures that could be called from any form within a VBCE project must be placed in a standard module (.bas file).


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.


MORE INFORMATION

In Visual Basic, a form procedure (function or sub) declared with the Public keyword can be called from outside the form. This method does not work in the Windows CE Toolkit for Visual Basic.


REFERENCES

Books Online for Microsoft Windows CE Toolkit for Visual Basic 5.0

Additional query words: scope private global vbce vbce5 vbce6

Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB
Issue type : kbbug
Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500


Last Reviewed: February 27, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.