David:

Here is code from an RPG/400 program...I know you are using RPG/II, but
perhaps this will help...

     IINFDS       DS                                      
     I                                      370 370 IDROW 
     I                                      371 371 IDCOL 
     I**                                                  
     IROWCOL      DS                                      
     I                                    B   1   20ZROW  
     I                                        2   2 YROW  
     I                                    B   3   40ZCOL  
     I                                        4   4 YCOL  
=============================================================
     C**                                            
     C** DETERMINE CURSOR LOCATION.                 
     C**                                            
     C                     Z-ADD*ZEROS    ZROW      
     C                     Z-ADD*ZEROS    ZCOL      
     C                     MOVE IDROW     YROW      
     C                     MOVE IDCOL     YCOL      
     C                     Z-ADDZROW      WKROW   30
     C                     Z-ADDZCOL      WKCOL   30

WKROW & WKCOL should have the row/column.  I have also seen/used the
"divide by 256" method, but don't have an example of that.

Hope this helps...
Bruce Guetzkow
Information Services Director
United Credit Service, Inc.
Phone: 262-723-2902
Fax: 262-723-5568
Email: bruceg@xxxxxxxxxxxxxxxxxxxxxxx
Web: www.unitedcreditservice.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.