PDA

View Full Version : base conversion



Michael Clease
10-11-2007, 01:59
I posted this on the coding monkeys site but thought I would put it up here for the people that dont use coding monkeys.

simple console script that show 3 different techniques for base10 to binary (string) conversion.

One thing I dont know,how to close the console window when I've finished.

Michael Hartlef
11-11-2007, 11:47
When you run the script from the explorer it closed right away, so you should add at least a waitkeypress or something like that. When you run it from the IDE, then the console window stays open.

ErosOlmi
11-11-2007, 12:36
Yes, exactly.

When console scripts are invoked by the shell, usually the console window is closed automatically by the operating system. To stop execution and have time to see results a CONSOLE_WAITKEY is needed at the end.

When console script are executing from inside thinAir, thinAir uses two different methods to run the script depending on how is setup the flag "Close Console Box" present in thinAir Options (General tab).

Anyhow, thanks for the script!.

Ciao
Eros

kryton9
11-11-2007, 23:00
I am glad you posted it at coding monkeys too Abraxas. We used to post a lot over there and I think it helps to get attenion to thinBasic.

I wonder if there is a way to mirror certain threads on this forum so it would appear at coding monkeys, like the code snippets and demos posts?

Maybe Eros and Cameron can figure out a way since they both use SMF for the forum package.