Documentation for hb_cmdline()

142 views
Skip to first unread message

Michael Green

unread,
Aug 19, 2022, 10:07:05 AM8/19/22
to Harbour Users
Hullo there fellow Harbour users. I'm having difficulty in locating documention for the hb_cmdline() function. I've done my due diligence and searched with Google. I also browsed the Harbour Reference Guide (https://harbour.github.io/doc/harbour.html). What am I missing? Thanks.

Joao Bosco Garcia dos Santos

unread,
Aug 19, 2022, 11:00:27 AM8/19/22
to Harbour Users
  • hb_CmdLine()  cString
    returns the full command line, i.e.: all command line arguments (parameters).


PROGRAM.EXE aaaaa bbbb

return: "aaaaa bbbb"

Ottó Trapp

unread,
Aug 19, 2022, 11:04:08 AM8/19/22
to Harbour Users
Hello Michael!

There are more sources of documentation. You can find info about hb_cmdline() here:
https://harbour.wiki/   => Documentation (search it with 'Harbour API Explorer')  /great job by Eric Lendvai/

Best Regards,
Otto

Auge & Ohr

unread,
Aug 19, 2022, 3:17:04 PM8/19/22
to Harbour Users
hi,

why not use Cl*pper Style

PROCEDURE MAIN()
   nParameter := PCOUNT()
   IF nParameter > 0
      FOR nn :=1 TO nParameter
         cVALUE := PValue( nn )

Pete

unread,
Aug 20, 2022, 6:15:17 AM8/20/22
to Harbour Users
Hi,

besides the quite helpful suggestions, that other guys have already done,
I would recommend to take a look at the function  hb_ACmdLine()
which is an improved member in the family of functions that retrieve command line parameters.

regards,
Pete

Michael Green

unread,
Aug 22, 2022, 10:52:06 AM8/22/22
to Harbour Users
Thank you to everyone who took the time to reply. Vee helpful. Michael.
Reply all
Reply to author
Forward
0 new messages