|
On 03/27/99 10:51:44 AM "eftimios pantzopoulos" wrote: >I want to be able to format a single 8 byte field into 2 fields >dynaically. Our application needs to be able to handle different >postcodes in the world. Eg in Australia we have a 4 digit postcode, in >the UK we want to be able to accept 4 byte and 3 bytes separated by a One (lazy!) solution is to simply let the user key the data in the format that you need it printed in, i.e. a Canadian user would type in "B6B 4B3" and a US user would type in "12211" If you don't think that'll work, you can always substring out the parts you want, something like this: eval column1=%sst(PostCode:Begin1:Len1) eval column2=%sst(PostCode:Begin2:Len2) eval PrintedPostCode=%trim(column1) + ' ' + %trim(column2) >I know of a product called Dynamic Screen Manager, but can you use it's >function in a normal DDS stream? I don't think you can mix and match DDS and dynamic screen manager. Buck Calabro Billing Concepts Inc (formerly CommSoft), Albany, NY mailto:mcalabro@commsoft.net * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.