Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate last parameter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01564432
Message ID:
01564473
Views:
54
>Hi Naomi,
>
> In help is bug, the last parameter is [, ErrorArray]. The example in the web page is right.
>
>MartinaJ
>
I was not able to make it work yesterday. Say,
dimension laCommitErrors[1]

if not tableupdate(2, .t., 'myTable', laCommitErrors)

   ** Handle error
endif

if type('laCommitErrors[1]') <> 'L'
   ....
endif
I was always falling into the second IF and laCommitErrors[1] was -1 and aerror returned some weird errors. I got rid of last parameter and tableupdate always succeded. So, I really don't understand why I was getting false errors or how should I have coded it.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform