Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error returned from a method in an instantiated VB .DLL
Message
De
01/04/2002 10:28:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error returned from a method in an instantiated VB .DLL
Divers
Thread ID:
00639448
Message ID:
00639448
Vues:
58
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
Fil
Voir

Click here to load this message in the networking platform