× 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.



You can use *DFT for the window position in your dds and the program will
take care of positioning the window, based upon where the cursor is.  
 
There's problems with doing it in your program, specifically having to do
with when the cursor is near the bottom or right edges of the screen.
---------------------------------
Booth Martin
http://www.martinvt.com
---------------------------------
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: 09/16/05 12:08:36
To: RPG programming on the AS400 / iSeries
Subject: Positioning a windowed subfile
 
Iam trying to get the inquiry window to pop up where the cursor is
positioned in subfile program.
When the user presses F4 to call the subfile inquiry program , the program
needs to retrieve the cursor position of the screen to pass the coordinates
to the subfile program.This process is coded in the following lines...
 
F  subfile     C  F E   WORKSTN
F                                                     KINFDS INFDS
 
I INFDS         DS
I                                              370 371 LINPOS
 
I                                         B   1       20LIN
I                                                2      2 L
 
I                   DS
 
I                                          B   1    20POS
I                                                2   2     P
C                 MOVE *ZEROS      LIN
C                 MOVE *ZEROS      POS
C                 MOVELLINPOS      L
C                 MOVE  LINPOS      P
C                 Z-ADD  LIN             SL       30
C                 Z-ADD  POS           SP       30
 
 
 
Can  some advise better ile code to the above or any much simplified code?
 
Thank you,
 
 
 
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
 
.

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.