Fixed v15.00.27: @SELECT

Jul 21, 2012
32
0
First, thanks for adding the new functionality to @SELECT. Makes my movie db management tool much sleeker.

A minor bug with returned SELECT_LINE which is 0 based instead of 1 based.

Also, in the doc for @SELECT, the SELECT_LINE variable is not mentioned.

Cheers,
Gilad
 
Jul 21, 2012
32
0
One more bug, it seems: [ENTER] doesn't register in the _SELECT_KEY variable. It just keeps its previous value. Might be WAD, as you chose to keep Enter and Escape work as usual, overriding the keymask functionality. I can live with that.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
One more bug, it seems: [ENTER] doesn't register in the _SELECT_KEY variable. It just keeps its previous value. Might be WAD, as you chose to keep Enter and Escape work as usual, overriding the keymask functionality. I can live with that.

WAD - _SELECT_KEY returns the last matching keystroke for an input mask. An Enter (or Escape) doesn't match anything.
 
Jul 21, 2012
32
0
Not sure what you mean by "match F2 to a line". _SELECT_KEY should hold a keypress or a combination, not the contents of a line.

I would expect it to behave the same way as INKEY /K, except the navigational keys which should always behave as expected; and return the result key in INKEY format.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
That's definitely not what _SELECT_KEY does.

Perhaps it would be best if you described exactly how you think it should work, and how you would use it -- especially what you think would / should happen when you press a function key while doing string match.
 
That's definitely not what _SELECT_KEY does.

Perhaps it would be best if you described exactly how you think it should work, and how you would use it -- especially what you think would / should happen when you press a function key while doing string match.
A slight change of topic here, but I'm not seeing the behavior I would expect from @SELECT when I do NOT specify the keymask argument. In this case I would expect it to do string matching when I type as it does in V14, but in V15 nothing happens when I type. Is this not working correctly or is it a misunderstanding on my part? (This is build 29 under XP.)

-- Howard
 
Jul 21, 2012
32
0
I noticed that too, Howard.

Rex, here's the behavior I expect for the different variations of the function:
1. When invoked without the 'keymask' parameter, the list box should react to navigational keys, Enter, Escape as expected. Normal character key presses and backspace should go directly to the Search box, and filter the list as expected, regardless of current focus within the list box.

2. When invoked with 'keymask', the list box should react to navigational keys as usual. When the user clicks on the search box, it allows normal typing only while the focus is in the box. Leaving the box keeps the filter active, but re-applies the keymask filter. Any other key is ignored, unless it is listed in the 'keymask'. When the user presses any key or key combination listed in keymask, it will immediately terminate @SELECT, and return the current line that was selected (or empty if all lines were filtered, or no line was supplied in the first place), and _SELECT_KEY holding the key/combination pressed, similar in format to INKEY's return value in its provided variable. One last note which I would add is that @SELECT should react to Ctrl-C just like any other command in TCC would - it should immediately close it, and pass the break to the batch file, just as a fail-safe mechanism to protect the user from his mistakes.

Best regards,
Gilad
 
Similar threads
Thread starter Title Forum Replies Date
nikbackm Fixed v15: Issue with @select Support 3
newbie Upgrade from v15 to v21 Support 9
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
vefatica Fixed V14, V15, V16 now corrupt Support 4
S Documentation Webpage not showing latest V15 build Support 0
D Folder/List view changed in v15 Support 8
Dan Glynhampton Fixed v15 sendmail : password encryption problem Support 18
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
nikbackm Registration problem with v15 Support 16
S list seems to loose focus v15 Support 2
Dan Glynhampton v15 installer question Support 2
G How to? v15: Can't alias Alt-Z Support 7
C Startup folder not working on v15 Support 6
H V15 Help: Error in ASSOCIATE topic Support 0
H V15 installer difficult to use with JAWS screen reader Support 0
nikbackm Fixed v15: VIEW - encoding and CSV issues Support 9
nikbackm v15: Problem with ALIAS in command group Support 10
Dan Glynhampton Documentation v15 help: Some trivial nitpicking. Support 1
Dan Glynhampton Documentation v15 help: Error in @ISSPACE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TASCII topic Support 0
Dan Glynhampton Documentation v15 help: A couple of typos Support 0
Dan Glynhampton Documentation v15 help: Minor niggles Support 0
Dan Glynhampton Documentation v15 help: Missing link Support 0
Dan Glynhampton Documentation v15 help: Syntax error in example of @DEC Support 0
Dan Glynhampton Documentation v15 help: More mailto: links Support 2
Dan Glynhampton Documentation v15 help: More odd mailto: links in the help Support 8
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
Dan Glynhampton Documentation v15 help: Error in @HTMLDECODE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TUPPER topic Support 0
Dan Glynhampton Documentation v15 help: Error on @TRIMALL function page Support 0
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
Dan Glynhampton Documentation v15 help: Incorrect Links Support 0
Dan Glynhampton Documentation v15 help: Help for SCREENMONITOR command Support 0
Dan Glynhampton Documentation v15 help: ECHOXERR Help Page Title is Wrong Support 0
Dan Glynhampton Documentation Bad links in v15 help Support 0
Dan Glynhampton Documentation Bad Link/Missing Page in v15 help Support 0
vefatica V15's automatic error emails to JPSoft! Support 3
C v15 not on ftp site? Support 8
Peter Bratton Observations on v15 install Support 4
R @select inside alias gives different (insanely small) window Support 7
Joe Caverly Windows Terminal and @SELECT Support 13
WinLanEm @SELECT problem Support 6
T @select and @selectarray issues Support 2
C How to? Select 100 random pictures from 30,000 Support 8
MikeBaas How to? SELECT: exclude files / display prompt Support 2
rps Documentation "Select" command switch order incorrect Support 4
mikea How to? @select[] window size, redux. Support 3
vefatica IDE double-click select? Support 29
gschizas How to? How can I use select with a folder that already contains parentheses? Support 7
T How to? Select and Delete text Support 6

Similar threads