FAQ: Visual Basic Programming in Visual Basic 4.0ID: Q142251
|
This article covers some of the most Frequently Asked Questions (FAQs) about technical issues for Microsoft Visual Basic for Windows. You can find this and other FAQ articles by querying on the keyword "FAQ." You can find additional general references in the Microsoft Knowledge Base by searching on "article list."
Function call:
CAUSE: Function does not exist in the program.
RESOLUTION: Make sure that the function exists in the program and
that the function is accessible to the form or procedure
calling the function. Place the function in a module to
allow access by any part of your program. Make sure that
the function name in the calling procedure matches the
name of the function.
CAUSE: Wrong number of parameters passed to the function.
RESOLUTION: Check that the correct number of parameters is passed to
the function.
CAUSE: Wrong parameter type is passed to the function.
RESOLUTION: Check that the parameter being passed to the function is
the type that the function expects. For example, passing
an integer parameter to a function expecting a string
results in this error.
CAUSE: Byte range for a character exceeded.
RESOLUTION: Check that the byte value of a character is between 0 and
255. For example, if you add 50 to the extended-ASCII
character CHR(230) and assign it to a string in Visual
Basic, the result is an "Illegal function call" error.
Another cause of this error is documented in the following
Knowledge Base article:
Dim i as integer
While forms.Count > 1
' Find first form besides "me" to unload
i = 0
While forms(i).Caption = Me.Caption
i = i + 1
Wend
Unload forms(i)
Wend
' Last thing to be done...
Unload Me
End
E-mail: winlogo@microsoft.com
Fax: (206) 936-7329, Attn: Windows Logo Department
Phone: (206) 936-2880
Mail: Microsoft Corporation
Attn: Windows Logo Department
Bldg. 20
Redmond, WA 98052- 6399
This kit provides all the information about requirements to display
the Windows 95 logo on your program. For more information on the
Windows Logo Program, see the following web site:
Additional query words: 4.00 vb4win vb4all faq fax back
Keywords :
Version :
Platform : NT WINDOWS
Issue type :
Last Reviewed: June 3, 1999