Adam:

IIRC, you have to close and reopen the dbf with its new index - then
the dbgoto() should work as expected.

ABIX - Adam Jurkiewicz wrote:
Dear developers,
can anybody answer little question:
Why if I'm doing dbgotop(), the pointer does not move to the beggining of file ?

[EMAIL PROTECTED]:~/ABIX/Serwis.Klienci/Serek/uni> hbmk test.prg
Harbour devel build 1.1-1 Intl.
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'test.prg'...
Lines 8, Functions/Procedures 1
Generating C source output to 'test.c'... Done.

[EMAIL PROTECTED]:~/ABIX/Serwis.Klienci/Serek/uni> cat test.prg

use pozycje new
index on towar_k to pozt
dbgotop()
? "aa" + str(recno())
dbgoto(1)
? "ab" + str(recno())

[EMAIL PROTECTED]:~/ABIX/Serwis.Klienci/Serek/uni> ./test

aa      4519
ab         1
[EMAIL PROTECTED]:~/ABIX/Serwis.Klienci/Serek/uni>


--
Luis Krause Mantilla
lkrausem at shaw dot ca
luis_krause at hotmail dot com
"May the Source be with GNU"


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to