MultiValue Tools

 View Only

 How to programmatically change the screen size in Wintegrate.

Jump to Best Answer
Mark Laursen's profile image
Mark Laursen posted 08-02-2021 09:46
I figured this out once, but never incorporated it into my system using Wintegrate.

How do you change from 80x24 to 132x51 in a program?

Thanks

Mark Laursen
Michael Archuleta's profile image
PARTNER Michael Archuleta Best Answer
Try CALL WIN.COMSUB('Set Columns=132') ; CALL WIN.COMSUB('Set Lines=51')
Michael Belme's profile image
Michael Belme
Mark,

You can also call a wIntegrate script if that's any easier...

*test script to set columns
Set Columns=132
Set Lines=51
EndScript

Regards,
Michael Belme
Manu Fernandes's profile image
PARTNER Manu Fernandes
Hi Mark

After CALL WIN.COMSUB, do not forget to reflect the values on server's side with EXECUTE 'TERM 132,51' then paging works accordingly. 

I hope this help.
Mark Laursen's profile image
Mark Laursen
Michael - Thank you. That works beautifully, I created a subroutine that I call with the Columns and Lines and it sets the Term and changes the size.

Now I need to put that into my screen generator and so that my error message line always comes out in the correct place.

Thank you All.