1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

@select and @selectarray issues

Discussion in 'Support' started by thorsten, Jul 22, 2017.

  1. thorsten

    Joined:
    Aug 16, 2008
    Messages:
    121
    Likes Received:
    0
    1. The documentation for @select and @selectarray says "If the specified width is < 150 [...]" - yet neither select nor selectarray take a width parameter

    2. @selectarray (and probably @select) don't work correctly when "ConsolePopupWindows=yes". Variables select_line and _select_key are not correctly set. "keymask" doesn't work (keys still work as search).
    Code:
    @echo off
    
    setarray /f choice[6]
    
    set choice[0]=1 Microsoft SQL Server
    set choice[1]=2 MySQL
    set choice[2]=3 Oracle
    set choice[3]=4 PostgreSQL
    set choice[4]=5 SQLite
    set choice[5]=6 NOT_AN_OPTION
    
    option //ConsolePopupWindows = no
    
    echo %@selectarray[choice,0,0,300,400,Enter database type:,0,1,12345] > nul
    echo %select_line
    echo %_select_key
    
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    The width is the "right" value minus the "left" value.

    Per the docs for ConsolePopupWindws:

    "There is no benefit (and several disadvantages) in using this option for normal non-server environments."

    Among the (known) disadvantages are the issues you raised above.

    Why were you using ConsolePopupWindows? Are you accessing TCC through an SSH connection?
     
  3. thorsten

    Joined:
    Aug 16, 2008
    Messages:
    121
    Likes Received:
    0
    It's not a SSH session; I simply find the switch between command line to GUI and back for history buffer and alike irritating.
     

Share This Page