Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@select and @selectarray issues

Aug
124
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
 
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?
 
It's not a SSH session; I simply find the switch between command line to GUI and back for history buffer and alike irritating.
 

Similar threads

Back
Top