again another issue with my DBF files.
Does anyone have a clue, why this piece of code is only working in VO?
I don't think that is useful code :dry: but it prints out the last 3 records.
In X# on the other hand _oDbArtikel:Append() returns false
and the DO WHILE !_oDbArtikel:eof results in an infinity loop with empty entries.
Any ideas why this is happening? It happens only on 2 DBF files. All others work as expected.
Code: Select all
RDDSETDEFAULT("DBFCDX")
...
LOCAL _oDbArtikel as bDBServer
_oDbArtikel = bDBServer{"dArtikel"}
IF _oDbArtikel:Append()
_oDbArtikel:FIELDPUT(#Arname, "Test123")
_oDbArtikel:Skip(0)
ELSE
? "Append returned false"
ENDIF
_oDbArtikel:GoBottom()
_oDbArtikel:Skip(-2)
DO WHILE !_oDbArtikel:eof
? "Arname: "
?? _oDbArtikel:FIELDGET(#Arname)
_oDbArtikel:Skip(1)
ENDDO
_oDbArtikel:Close()