PDA

View Full Version : ThinBasic Beginner



Katogoon
07-05-2013, 11:05
Hello,

I have just recently started playing around with ThinBasic and I am enjoying it so far, I like the modular design.

I just want to ask what are the reasons for having multiple ways to do the same thing? For example I am just experimenting with the console module and there are multiple ways to output text to the screen?;

console_write
console_print
print

The same applies for output with newline and a coordinated location.

Thanks in advance.

ErosOlmi
07-05-2013, 21:42
Hi Katagoon,

welcome to thinBasic ommunity forum.

Well, why multiple ways? In reality there are not many situations where we developed multiple ways of doing the same things.
One of this occasion is exactly Console module where all keywords starts with "console_" but for compatibility reasons with other BASIC programming languages we added PRINT as ALIAS of Console_Print or PRINTL and WAITKEY respectively ALIAS of Console_PrintL and Console_WaitKey.

You can also create your own ALIAS of native commands using ALIAS command: http://www.thinbasic.com/public/products/thinBasic/help/html/index.html?alias.htm

Hope you will continue with thinBasic enjoy.

Ciao
Eros

Katogoon
08-05-2013, 00:14
Dear Eros,

Due to my lack of exposure to the language I was unaware if any other modules had similar alias, thank you for pointing that out to me. I am going to stick around here, I want to see what I can make using the TBGL module.

Thank you!