Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement