Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging ADO
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00704999
Message ID:
00705384
Views:
12
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()
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform