Page 1 of 1

Differences

PostPosted: Sun Nov 14, 2010 9:49 am
by driessen
Hello,

Can anyone tell me what the difference is between DBSKIP() and SKIP, between DBGOTOP() and GO TOP, between DBAPPEND() and APPEND, ... ?

I have always used SKIP, GO TOP, APPEND, ... and I never got any problem with them.

Thanks a lot in advance.

Re: Differences

PostPosted: Sun Nov 14, 2010 11:18 am
by Antonio Linares
Michel,

Those commands get preprocessed into their respectives functions calls. You may review std.ch to see how the commands get translated into their functions calls.

So in fact it is the same to use the command or the function. In case that you need to call them from a codeblock, then you will have to use the function call as the command can't be used there.

Re: Differences

PostPosted: Sun Nov 14, 2010 12:16 pm
by hua
Another advantage is with function calls, you can work on a different workarea without changing the current one e.g.
Code: Select all  Expand view

use stock new exclusive
use inv new exclusive
copy inv to tmp123

select stock
? desc
inv->(dbSkip())
("tmp123")->(dbSkip())
tmp123->(dbSkip())
? desc
 

Re: Differences

PostPosted: Sun Nov 14, 2010 5:30 pm
by driessen
Antonio,
Hua,

Thanks a lot for your answers.