@select and @selectarray issues

Aug 16, 2008
124
0
#1
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
 

rconn

Administrator
Staff member
May 14, 2008
10,423
95
#2
1. The documentation for @select and @selectarray says "If the specified width is < 150 [...]" - yet neither select nor selectarray take a width parameter
The width is the "right" value minus the "left" value.

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).
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?