jimwal0367
Programmer
Just converted from VB6 to VB2008
On running my old code, I get the following error.
Conversion from type '_ComObject' to type 'String' is not valid
This is the code that is throwing the error.
trans = Trim(MyArea)
I have declared trans as a string
and MyArea as object.
MyArea is set to 'MyArea = Sess0.Screen.area(1, 28, 1, 32)'
This code used to work, does anybody have any ideas how to correct it.
On running my old code, I get the following error.
Conversion from type '_ComObject' to type 'String' is not valid
This is the code that is throwing the error.
trans = Trim(MyArea)
I have declared trans as a string
and MyArea as object.
MyArea is set to 'MyArea = Sess0.Screen.area(1, 28, 1, 32)'
This code used to work, does anybody have any ideas how to correct it.