The following works in VO 2.8 (2838) and fails in X# 2.5b.
The oServer:SetOrder("XNMEB01") returns True, but in X# returns False and thus the CDX file is not updated.
I even removed all index tags and created only one and it still fails. In VO works all the time with one or indexes.
What could be the issue or is it a bug?
I attached a zip file with an empty DBF and CDX.
Code: Select all
method SetOrderTest() as void
LOCAL ok as logic
local oServer AS DbServer
oServer := DbServer{"C:TestXNMEA01.dbf", true, false, "DBFCDX"}
if oServer:Used // this is OK
ok := oServer:SetOrder("XNMEB01") // return false in X#
if ok
oServer:Append()
oServer:FIELDPUT("UNIT_ID", "123456")
oServer:Commit()
endif
oServer:Close()
endif
return