Page 1 of 3
printing to stdout
Posted: Fri Oct 07, 2011 3:00 pm
by t57042
How can I print a string to stdout?
Richard
Re: printing to stdout
Posted: Fri Oct 07, 2011 3:27 pm
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
--
Esgici
Re: printing to stdout
Posted: Fri Oct 07, 2011 4:15 pm
by t57042
Thanks,
and how can I send a string to the clipboard??
Richard
Re: printing to stdout
Posted: Fri Oct 07, 2011 4:31 pm
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
Re: printing to stdout
Posted: Fri Oct 07, 2011 4:37 pm
by Rathinagiri
t57042 wrote:Thanks,
and how can I send a string to the clipboard??
Richard
system.clipboard := cString
Re: printing to stdout
Posted: Fri Oct 07, 2011 5:39 pm
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
Re: printing to stdout
Posted: Fri Oct 07, 2011 6:02 pm
by t57042
Yes, I did.
Re: printing to stdout
Posted: Fri Oct 07, 2011 6:12 pm
by esgici
May be "press any key to continue" message come from system (OS, CMD of win); not your program.
Regards
--
Esgici
Re: printing to stdout
Posted: Fri Oct 07, 2011 7:19 pm
by t57042
Probably, but isn't it possible to write to the console without that?
Re: printing to stdout
Posted: Fri Oct 07, 2011 7:29 pm
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