Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging ADO
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00704999
Message ID:
00705384
Vues:
13
Is this code on the error event? This code would need to run after the error condition has been generated. Try to also save to the text file any memory variable contents, so that you can check what's going in to the fields.

>Ok, here's my code, with the dubg stuff included:
>The resulting text file shows all status codes as zero.
>
>And I'm still getting the error.
>
>Any ideas?
>
>
>
>
>
>***** DEBUG CODE *****
>nHandle = FCREATE("c:\debug_info.txt")
>
>FOR nField = 0 TO oDetailRec.Fields.Count - 1
>
>  cInfo = oDetailRec.Fields(nField).Name + " - " + ;
>          TRANSFORM(oDetailRec.Fields(nField).Status) + " - " + ;
>          TRANSFORM(oDetailRec.Fields(nField).DefinedSize) + " - " + ;
>          TRANSFORM(oDetailRec.Fields(nField).ActualSize) + " - " + ;
>          "'" + ALLTRIM(TRANSFORM(oDetailRec.Fields(nField).Value)) + "'"
>
>=FPUTS(nHandle, cInfo)
>
>ENDFOR
>=FCLOSE(nHandle)
>***** DEBUG CODE *****
>
>** Save the record
>oDetailRec.Update()
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform