printing to stdout

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

printing to stdout

Post by t57042 »

How can I print a string to stdout?

Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

Hello Richard

First, welcome aboard; regards from Turkey :)

And then, AFAIK in the GUI environment we haven't a "stdout" :(

For anything to "out" (print), you have defined a "place"; usually a form (window).

If you are about console mode, everything is as usual: print commands are ? or ?? and print functions are QOUT() and QQOUT().

I hope this will be helpful for you.

Regards / Cordialement :D

--

Esgici
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

Thanks,

and how can I send a string to the clipboard??

Richard
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

If you are about console mode, everything is as usual: print commands are ? or ?? and print functions are QOUT() and QQOUT().


The only thing that seems to do the trick is : outstd().

It displays "press any key to continue" - can that be avoided??

Richard
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: printing to stdout

Post by Rathinagiri »

t57042 wrote:Thanks,

and how can I send a string to the clipboard??

Richard
system.clipboard := cString
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

t57042 wrote: The only thing that seems to do the trick is : outstd().

It displays "press any key to continue" - can that be avoided??

Richard
Did you tried ? or QOUT() instead of outstd() ?

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

Yes, I did.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

May be "press any key to continue" message come from system (OS, CMD of win); not your program.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

Probably, but isn't it possible to write to the console without that?
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

I guess no !

In general, my console prgs run in "terminate and close cmd window" fashion and I have add WAIT command in prg or PAUSE command in the .bat file that call my prg.

Could you send a simple example ?

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply