Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error returned from a method in an instantiated VB .DLL
Message
From
01/04/2002 10:28:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Error returned from a method in an instantiated VB .DLL
Miscellaneous
Thread ID:
00639448
Message ID:
00639448
Views:
59
I've been away from VFP for too long :(

I am trying to return a value from a SQL Server database via an instantiated VB .DLL.

A snippet of the code is:
oGroups = CREATEOBJECT("MIPS_Groups.clsGroups")
IF VARTYPE(oGroups) = "O" AND NOT ISNULL("oGroups")
x = oGroups.GetGeoName("010")
ENDIF

The method should return a state name; i.e., "Georgia". The VB code uses the oRecordSet.GetRows() method to return the result.

I'm getting the error:
OLE IDispatch exception error code 0 from ADODB.Errors; Item cannot be found in the collection corresponding to the requested name or ordinal ...

In the above example, should x be an array element rather than a variable?

Bottom line, what am I doing wrong?

Thanks,

Dan Rhymes
Next
Reply
Map
View

Click here to load this message in the networking platform