Results 1 to 3 of 3

Thread: ThinBasic Beginner

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Location
    United Kingdom
    Posts
    5
    Rep Power
    12

    ThinBasic Beginner

    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.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    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/prod...html?alias.htm

    Hope you will continue with thinBasic enjoy.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Location
    United Kingdom
    Posts
    5
    Rep Power
    12
    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!

Similar Threads

  1. Goal: a desktop cnc machine Level: Beginner
    By kryton9 in forum Technology
    Replies: 43
    Last Post: 26-09-2012, 04:33
  2. lionhearts beginner open gl lesson 1a
    By Lionheart008 in forum TBGL Tutorials
    Replies: 15
    Last Post: 12-09-2008, 09:50
  3. ideas for a beginner's programs
    By sandyrepope in forum thinBasic General
    Replies: 6
    Last Post: 20-02-2007, 20:41

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •