|
"Ray, Adam" wrote: > Is there a way to have the fields on a display file be part of an array? > I have a screen where the user enters multiple values for a particular > field. They can enter from 1 to 67 different values. I would like the first > value to be bucket 1 of an array, the 2nd value bucket 2, and so on. That > way I can sort or validate the fields by just looping through the array > instead of checking each field individually. > So can you have an array in a display file, or am I dreaming? > Adam Ray > Applications Programmer > Family Health Partners > 816-855-1822 > aray@fhp.org <mailto:aray@fhp.org> Ray, Define a DS in the D-specs and define an array in that. Overlay the DSPF fields to the datastructure. I think code would look like that (no real example by hand): D Screen DS 335 D Array 5 DIM(67) D DspField1 5 OVERLAY(Screen:1) D DspField2 5 OVERLAY(Screen:*NEXT) etc, etc. Hope this will help. Carel Teijgeler. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | 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-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.