RobotStudio event

Type mismatch errors [WebWare SDK]

Several users have reported type mismatch error messages when using certain methods of the WebWare SDK Helper control in <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />Visual Basic 6.0. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

 

These errors may occur even though the user has declared their variables to be of the type specified for the method that is used. This condition may be caused by the use of the multiple variable declaration per line syntax that is legal in Visual Basic 6. The reason for this error lies in the inability of Visual Basic 6 to dimension all of the variables declared on one line of code as the type specified.

 

When multiple variables are declared on the same line, only the last variable in the series will be dimensioned as the specified type; all of the preceding variables will actually be dimensioned as the Variant type. For example, in the variable declaration:

 

Dim ResultSpec, retval, Timeout As Integer

 

only the variable Timeout will be explicitly dimensioned as an integer. ResultSpec and retval will actually be dimensioned as Variants, with the subtype integer. In some cases, this nuance may be sufficient to cause the type mismatch message to be generated.

If you are experiencing this condition, please verify that the variables you are using are each declared on a single line of code.

 

RussD38014,6631018519
Russell Drown