• Subject: Fwd: Centering Text Within a Field - an addendum
  • From: Kmh0421@xxxxxxx
  • Date: Thu, 28 Jun 2001 13:37:49 EDT

Geeez I really messed this one up, I guess I should have also stated that
fields NAME and CENTER are assumed to be 35 bytes long for this example. NAME
contains the left-justified text, while CENTER contains the centered text.



FromNews 3X/400's Power Tools for the AS/400-Wolume II (F.Dick & D.Riehl):
C    ' '    CHEKR NAME   X    30
C    35   SUB     X          X


C          DIV       2          X

C    ''     CAT      NAME:X      CENTER     P
There is probably a fancier way, but I remember this being in the book.
Kathie








-----------------
Forwarded Message:
Subj:     Re: Centering Text Within A Field    
Date:     06/28/2001 11:57:59 AM Central Daylight Time    
From:     Kmh0421    
To:     RPG400-L@midrange.com    

In a message dated 06/28/2001 11:43:58 AM Central Daylight Time,
ralford@richmond.k12.va.us writes:
Subj: Centering Text Within A Field
Date: 06/28/2001 11:43:58 AM Central Daylight Time
From:    ralford@richmond.k12.va.us (Ronald A. Alford)
Sender:    owner-rpg400-l@midrange.com
Reply-to: RPG400-L@midrange.com
To:    RPG400-L@midrange.com
Hello everyone,
I have a field that is 40 characters long and I would like to center any
text that comes into this field.  Does anyone know how to do this.  I am
trying to use OVERLAY but I get an error when I specify the second
parameter (Start Position) as another field in my program.  HELP !!! :-(



  • Subject: RE: Centering Text Within a Field - Oppps forgot a line!
  • From: Kmh0421@xxxxxxx
  • Date: Thu, 28 Jun 2001 13:08:14 EDT
  • Full-name: Kmh0421
Oooooops-forgot a line

FromNews 3X/400's Power Tools for the AS/400-Wolume II (F.Dick & D.Riehl):
C    ' '    CHEKR NAME   X    30
C    35   SUB     X          X

C          DIV       2          X
C    ''     CAT      NAME:X      CENTER     P
There is probably a fancier way, but I remember this being in the book.
Kathie







-----------------
Forwarded Message:
Subj: Re: Centering Text Within A Field
Date: 06/28/2001 11:57:59 AM Central Daylight Time
From: Kmh0421
To: RPG400-L@midrange.com



FromNews 3X/400's Power Tools for the AS/400-Wolume II (F.Dick & D.Riehl):
C    ' '    CHEKR NAME   X    30
C    35   SUB     X          X
C    ''     CAT      NAME:X      CENTER     P
There is probably a fancier way, but I remember this being in the book.
Kathie


In a message dated 06/28/2001 11:43:58 AM Central Daylight Time,
ralford@richmond.k12.va.us writes:



Subj: Centering Text Within A Field
Date: 06/28/2001 11:43:58 AM Central Daylight Time
From:    ralford@richmond.k12.va.us (Ronald A. Alford)
Sender:    owner-rpg400-l@midrange.com
Reply-to: RPG400-L@midrange.com
To:    RPG400-L@midrange.com




Hello everyone,
I have a field that is 40 characters long and I would like to center any
text that comes into this field.  Does anyone know how to do this.  I am
trying to use OVERLAY but I get an error when I specify the second
parameter (Start Position) as another field in my program.  HELP !!! :-(




As an Amazon Associate we earn from qualifying purchases.


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.