PRB: eVB: Omitting Certain Optional Parameters for Move Method Gives "Type Mismatch" Error (262501)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q262501 SYMPTOMS
If you are not supplying certain optional parameters for the Move method of an intrinsic eMbedded Visual Basic control, you may get the error message
An error occurs while running this application : type mismatch
when you run the program.
This problem can also been seen with the same code running in Microsoft Visual Basic 6.0. The error message in this case is:
runtime error 448: named argument not found
CAUSE
This problem happens because you must specify all arguments in the order the syntax requires. In the Visual Basic 6.0 documentation for the Move method, it states:
Only the left argument is required. However, to specify any other arguments, you must specify all arguments that appear in the syntax before the argument you want to specify. For example, you can't specify width without specifying left and top. Any trailing arguments that are unspecified remain unchanged.
This also applies to eMbedded Visual Basic.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDSupport kbprb KB262501 |
---|
|