Results 1 to 2 of 2

Thread: Indent code

  1. #1
    Member
    Join Date
    Jan 2018
    Location
    France
    Age
    71
    Posts
    72
    Rep Power
    14

    Question Indent code

    Hi Eros,


    On february 17, we have some exchanges about ThinAir.


    Quote Originally Posted by ErosOlmi View Post
    Thanks Dany for private feedback and testing

    I've recoded from the ground up a new splitter and seems working quite fine.
    There are still some little defects that I will try to solve in next versions

    Soon will publish thinBasic 1.12.1 version with this fix.
    Eros
    I downloaded 1.12.1 , solving resizing issue.

    But at the moment I didn't see that something disappeared.

    When I select a part of code, and press right mouse button the popup line "Indent code" is no more displayed.

    Is it a misconfiguration in my installation or a no more feature ?

    Config : TB 1.12.1 Windows 7 sp 1

    Works ok in TB 1.12.0 Windows 7 sp 1

    When I look in https://www.thinbasic.com/downloads.html the last version is still 1.12.0. ?

    Thanks for help.

    Best regards,

    Dany

  2. #2
    Member
    Join Date
    Jan 2018
    Location
    France
    Age
    71
    Posts
    72
    Rep Power
    14

    Update previous post

    Can't edit previous post.

    The need for thinAir to indent code is the warning message appearing in this script.
    I really don't see where a if/then block violation is

    Uses "Console"
    
    dim prg_version as string = "1.5.0"
    
    dim buffer_by_lines as string = "2024-03-31 03:00:00+0200;746,4"
    dim n_ligne as long  ' compteur
    dim c_yellow as  integer value 14
    
    printl "--------------------------------------------------------------------------------"
    
    printl "starting"
    
    for n_ligne = 2 to  4
      print    "in n_ligne loop    n_ligne =" , n_ligne , "       |    "
      if parsecount(  buffer_by_lines , ";" ) = 2  then  ' line with extra fields are ignored
      else
        printl "bad line"
      endif  
      
      buffer_by_lines += " ; extra field"
      
    next  ' n_ligne = 2 to  n_lines
    
    printl "After n_ligne loop   n_lines =" , n_ligne
    
    printl $crlf, "waiting 10 seconds." in c_yellow
    if waitkey (10) =  "[TIMEOUT]" then stop
    printl "Paused"
    waitkey
    
    Here is a screen snapshot of ThinAir showing the warning

    block_warn.png

    The script is a reduced part of a more complex script but the script does correctly his work ?

    Best regards,

    Dany

Similar Threads

  1. Turn off Auto text CASE? Turn off Auto Indent?
    By garretthylltun in forum thinAir General
    Replies: 5
    Last Post: 17-06-2014, 20:52
  2. code
    By fravado in forum Shout Box Area
    Replies: 5
    Last Post: 07-04-2008, 17:23
  3. In need of code.
    By E.K.Virtanen in forum thinBasic General
    Replies: 9
    Last Post: 09-11-2007, 10:07

Members who have read this thread: 9

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
  •