Differences

Differences

Postby driessen » Sun Nov 14, 2010 9:49 am

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.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Differences

Postby Antonio Linares » Sun Nov 14, 2010 11:18 am

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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Differences

Postby hua » Sun Nov 14, 2010 12:16 pm

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
 
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Differences

Postby driessen » Sun Nov 14, 2010 5:30 pm

Antonio,
Hua,

Thanks a lot for your answers.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 114 guests