View Poll Results: Which of the following 5 PRINTL thinBasic statements will print something different?

Voters
5. You may not vote on this poll
  • 1, 2 and 5 the same output

    1 20.00%
  • All have different output

    0 0%
  • 3 and 4 the same output

    0 0%
  • All will print the same output

    4 80.00%
  • 1 and 2 the same output

    0 0%
  • Only 1, 2 and 3 have the same output

    0 0%
Results 1 to 3 of 3

Thread: Different output?

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Different output?

    Here another QOD (Question Of the Day)

    Which of the following 5 PRINTL thinBasic statements will print something different?

    Uses "Console"
    
    String A = "Hello"
    String B = "world"
    
    PrintL A + " " + B
    PrintL A . " " . B
    PrintL A, B
    PrintL EXPAND$("$A $B")
    PrintL A & " " & B
    
    WaitKey
    
    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

  2. #2
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    quite confusing since the voting possibilities (1,2 and 5 are equal) in the first and in the last line are the same.

    Really mind-cranking!
    I think there are missing some Forum-sections as beta-testing and support

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    Hehe,

    I just voted #1 and now I see it was a bad choice, I should return my diploma from University of ThinBASIC

    I thought the comma leads to tabbed out output, but was not sure if it will equal in one space between "Hello" and "world". Maybe it could be added to help file that comma separates the strings using space?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. CHOOSE and CALL used to do the same thing
    By marcuslee in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 1
    Last Post: 09-09-2008, 07:01
  2. Intel Atom: the next big thing
    By ErosOlmi in forum Technology
    Replies: 1
    Last Post: 30-05-2008, 23:22
  3. Every Thing But VB6?
    By sfbm in forum Other languages SDK development
    Replies: 6
    Last Post: 06-01-2008, 22:38

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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