Welcome!

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

SignUp Now!

@SELECT still not working as expected

Mar
26
0
Now - with the last version of TCC - the answer of a normal iteration is as below, instead of 16 lines and 31 columns.
counting.webp
 
Indeed the "over-long" line is the cause.
To be malicious, it can be said that the expression works according to your expectations, not mine.
So, what is the meaning of "long" and "over - " ? The line has 130 characters.

This is my character mode popup :
set name=%@SELECT[%prol\lini.txt,0,12,22,42,SELECT DATABASE]
if "%@TRIM[%@WORD[";",0,%nume]]" EQ "IESIRE" (set tip=R ~ return)
if "%@TRIM[%@WORD[";",0,%nume]]" EQ "" (set tip=R ~ return)
if "%ASCII[%@TRIM[%@WORD[";",0,%nume]]]" EQ "27" (set tip=R ~ return)
set firma=%@TRIM[%@WORD[";",1,%nume]]
set baza=%@WORD[";",2,%nume]
set servL=%@WORD[";",3,%nume]
set servX=%@WORD[";",4,%nume]
set dkM=%@WORD[";",5,%nume]
set dkD=%@WORD[";",6,%nume]
set NameTable=%company%-%year%

What syntax to use if this could become obsolete ?
Thank you.
Florin
 
You are using the old character size syntax, not the new screen position by pixel syntax (well, "new" as in it was changed 20+ years ago).

The problem is you are defining the window by rows / columns. TCC creates a window of that size (by determining the font size and then multiplying by the row/column values) But TCC has no idea what you're going to put into the window. When you add a line greater than the horizontal width, Windows (not TCC) adds the horizontal scrollbar overwriting your last line.

So you can either switch to the screen position format and size your window appropriately, or if you want character-mode popups you can use the ConsolePopupWindows directive in TCMD.INI (see the help for details).
 
Back
Top