Results 1 to 2 of 2

Thread: Printl with multiple parenthesis blocks failing

  1. #1
    Junior Member
    Join Date
    Dec 2023
    Posts
    21
    Rep Power
    4

    Printl with multiple parenthesis blocks failing

    I can't figure out how to use the Printl command with multiple () blocks.
    I.E. "Multiple blocks of text/color/position can be indicated into a single command just putting them into a () pairs"

    It keeps telling me "invalid delimeter". I've tried seperating them with SPACE COMMA AMPERSAND SEMICOLON etc. Nothing seems to be what it wants.

    Any ideas what I need to do here in my test program...?


    'My system is Windows 11, ThinBasic 1.14.0 beta
    Uses "Console"
    Printl("Text" in %CColor_Blue)
    Printl("Text" in %CColor_Green)
    Printl("Text" in %CColor_Blue)("Text" in %CColor_Green)
    WaitKey


    LastRunTimeError.ini
    [Script]
    Main=C:\Users\Zamboni\Documents\TB\Console Colors display.tbasic
    Include=
    [RunTimeError]
    DateTime=13/06/2025 20:16:59
    Code=262
    Description=Invalid delimiter
    Line=28
    LineCode=CONSOLE_WRITELINE("Text" IN %CCOLOR_BLUE)("Text" IN %CCOLOR_GREEN)
    Token=%CCOLOR_BLUE
    Additional=

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    58
    Posts
    8,849
    Rep Power
    10
    mmm ... something is not perfect in help and in parsing, I will have a look

    In the meantime, if you just want to mix colors, do not use () and separate by , in this way:
    Uses "Console"
    
    
    Printl "Text" in %CColor_Blue
    Printl "Text" in %CColor_Green
    Printl "Text" in %CColor_Blue, "Text" in %CColor_Green
    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

Similar Threads

  1. Gary McKinnon: May Blocks Extradition To US
    By Charles Pegge in forum Shout Box Area
    Replies: 1
    Last Post: 14-12-2012, 19:13
  2. Replies: 0
    Last Post: 13-04-2012, 00:29
  3. Does Multiple USES Cause Problems
    By peralta_mike in forum Core module
    Replies: 3
    Last Post: 04-05-2011, 16:46

Members who have read this thread: 6

Posting Permissions

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