General information
Category:
COM/DCOM and OLE Automation
Title:
Error returned from a method in an instantiated VB .DLL
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only