× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This works for me:

**

//check current screen size, configure to match
GetScreenSize(*omit:wNbrCols:*omit:*omit);
if wNbrCols = 132;
*in90 = *on;
else;
*in90 = *off;
endif;

**

the program is at http://www.martinvt.com/SQL_-simple-/SQL_Msg_Window/sql_msg_window.html

****


On 2/14/2020 2:37 PM, dfreinkel wrote:
I tried this sub procedure and it returns zeroes. When should it be called?

I called it at the start of the program.

Darryl Freinkel
A4G.
Tel: 770.321.8562 Ext 111 | Cell: 678.355.8562

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Booth Martin
Sent: Friday, February 14, 2020 2:17 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Switching display sizes depending on the screen capabilities *DS3 and *DS4

#1... remove the lines with 29/N29? you always want that format? (Not tested but that seems a reasonable first shot.)

#2: Are you using:

**

d GetScreenSize pr extproc('QsnRtvScrDim')
d NbrRows 10i 0 options(*omit)
d NbrCols 10i 0 options(*omit)
d Handle 10i 0 options(*omit)
d ErrorCode 32767 options(*varsize: *omit)


**
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.