Welcome!

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

SignUp Now!

@SELECT gives unexpected results

Mar
26
0
I use the @SELECT function for menus. The window length parameter has no specified result.

set opts=%@SELECT[%prol\optiuni.lst,1,12,20,38,OPTIUNI] - I should get a window length of 19 lines.

But the last line is not displayed. Increasing the length by one i.e. (1,12,21,38) give a good result.
I was using a one column file :
word 1
word 2
...
19-th word.
When changing with a multi-columns file (more columns like in a csv file separated by semicolon) again the last line is not seen.
Increasing the length is useless : the file has only 15 rows not 19 as specified by @SELECT. The last row is a return-carriage.
I am using TCC ver.33.00.11 and Windows 11.

I don't know where I am wrong.
Thank you for any help,
Florin
 
I don't get the requested number of rows or the requested number of columns.

1727705008458.webp
 
If those numbers are < 150 they are POSITIONS with respect to the console window, measured in rows and columns. My example above used the 5th console row as TOP. Here are 1 (FG), and 0 (BG), both of which work.

1727716358760.webp


The 8th parameter seems to work fine; below I specified that row 9 be selected.

1727716654248.webp
 
Ah, yes, I see NOW - thank you for explaining!

8th parameter seems to work here too.
 
Back
Top