Page 1 of 1

Print statement and window

PostPosted: Wed Feb 23, 2011 8:52 am
by udo.killermann
Bernd,

it would be nice to have a Print statement like Basic had in the old days. All that would be needed is a window where this output is directed to. The output should be accumulated during the program execution. The window itself should have a boolean Show property.
I could do this on my own but I think it would be handy for beginners (pros as well) to have this facility built into the ObjB runtime classes resp. objects.

BTW: The Log command is helpful in the beginning, but I think it pollutes the system log. Regular output of an application should (in my opinion) be directed to the system log only if the user sets a certain log level for diagnostic reasons or an error condition occurs. Log feels "artificial" to me and Alert is only one shot without any memory.

Regards
Udo

Re: Print statement and window

PostPosted: Wed Feb 23, 2011 1:46 pm
by berndnoetscher
udo.killermann wrote:Bernd,

it would be nice to have a Print statement like Basic had in the old days. All that would be needed is a window where this output is directed to. The output should be accumulated during the program execution. The window itself should have a boolean Show property.
I could do this on my own but I think it would be handy for beginners (pros as well) to have this facility built into the ObjB runtime classes resp. objects.

BTW: The Log command is helpful in the beginning, but I think it pollutes the system log. Regular output of an application should (in my opinion) be directed to the system log only if the user sets a certain log level for diagnostic reasons or an error condition occurs. Log feels "artificial" to me and Alert is only one shot without any memory.

Regards
Udo


Udo,
I agree. I will do this:

? and Print used to show on a window screen like in qbasic and kbasic.

Re: Print statement and window

PostPosted: Thu Feb 24, 2011 7:43 am
by udo.killermann
Bernd,

thanks!

Regards
Udo

Re: Print statement and window

PostPosted: Thu Feb 24, 2011 7:45 am
by udo.killermann
Bernd,

what would you think of having an inline Input facility as well (perhaps inside the print window)? Some primitives would help for fast hacks ;) or for early experiments with language features.

Regards
Udo

Re: Print statement and window

PostPosted: Thu Feb 24, 2011 9:42 am
by berndnoetscher
udo.killermann wrote:Bernd,

what would you think of having an inline Input facility as well (perhaps inside the print window)? Some primitives would help for fast hacks ;) or for early experiments with language features.

Regards
Udo


This is related to the debugger. It needs some time to your suggestion this, so I don't know when it will be implemented.