Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE IDispatch error...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01351557
Message ID:
01351658
Vues:
39
This message has been marked as the solution to the initial question of the thread.
Hi Mike,

>>You may have to go through and eliminate fields until the problem goes away...then that is your troubled field.
>
>here is what i'm trying to do. but i'm getting errors on loCommand.ActiveConnection.Errors.Item(0).Description...
>I have tried ...item(1) and item(0) neither works...
>

you may have to get the object reference first. ie:
TRY
	loCommand.Execute    
CATCH TO staterr
  lExecuteErr = 1	
 
  FOR EACH loError IN loCommand.ActiveConnection.Errors
    lExecuteErrMsg = lExecuteErrMsg  + loError.Description+ g_crlf
    lExecuteErrMsg = lExecuteErrMsg  + TRANSFORM(loError.Number)+ g_crlf
    lExecuteErrMsg = lExecuteErrMsg  + loError.Source+ g_crlf
    lExecuteErrMsg = lExecuteErrMsg  + TRANSFORM(loError.SQLState)+ g_crlf
  ENDFOR
ENDTRY
but ultimately you will probably have to remove fields/parameters from the UPDATE command until it works. Try the divide and conquer method...130 fields should only take 8 tries.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform