Hmm, in help is missing next sentences.
If is row buffering on alias, the array contains -1 always.
If is table buffering on alias, the array contains record numbers of bad records.
MartinaJ
>>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.