Hi,
Any idea why I'm getting different results for aa when everything is the same. The aa was only added to troubleshoot this. With aa removed (original setup), tableupdate() fails, so I added a 2 second wait with the inkey() and it now returns .T.. Nothing else has changed.
Is there a better way to find what tableupdate() is having trouble with as the aerror() is not specific enough as it only shows the message, program, line and some .null.s, nothing usefull.
When aa = .F., an exception is thrown on the requery() line with message about "table buffer for alias "xyz" contains uncommitted changes", otherwise, no exception. Restart VFP, open form, change name value, and apply.
With a pause, it succeeds, otherwise it fails.
Thanks
Stanley
Any idea why I'm getting different results for aa when everything is the same. The aa was only added to troubleshoot this. With aa removed (original setup), tableupdate() fails, so I added a 2 second wait with the inkey() and it now returns .T.. Nothing else has changed.
Code:
*=INKEY(2) && aa returns .F.
=INKEY(2) && aa returns .T.
aa = Tableupdate(1, .T., 'rv_Table')
messagebox(aa)
= Requery('rv_Domain')
Is there a better way to find what tableupdate() is having trouble with as the aerror() is not specific enough as it only shows the message, program, line and some .null.s, nothing usefull.
When aa = .F., an exception is thrown on the requery() line with message about "table buffer for alias "xyz" contains uncommitted changes", otherwise, no exception. Restart VFP, open form, change name value, and apply.
With a pause, it succeeds, otherwise it fails.
Thanks
Stanley