annettesue
Technical User
I am new to progress dynamics.i want to print a range of serial numbers for each order that user key in. e.g. Order: 11,15,23,45...,
serial number for such orders with be printed out accordingly.i've prepared 10 fields for user to key in the
order but it's not necessary for them to key in every fields. At my viewer procedure, i pass all the
fields' parameter in a string(regardless if it is filled) to my PLIP prosedure to run the print function. I am not sure
how to loop through the parameter string to find the field that is filled and print out the serial numbers accordingly.
Below is the example(in my viewer procedure).Please advice.
pc_parameter = "".
pc_parameter = pc_parameter + gc_s1 + CHR(1).
pc_parameter = pc_parameter + gc_s2 + CHR(1).
pc_parameter = pc_parameter + gc_s3 + CHR(1).
pc_parameter = pc_parameter + gc_s4 + CHR(1).
pc_parameter = pc_parameter + gc_s5 + CHR(1).
pc_parameter = pc_parameter + gc_s6 + CHR(1).
pc_parameter = pc_parameter + gc_s7 + CHR(1).
pc_parameter = pc_parameter + gc_s8 + CHR(1).
pc_parameter = pc_parameter + gc_s9 + CHR(1).
pc_parameter = pc_parameter + gc_s10.
/*launch my super procedure to run the print function*/
{dynlaunch.i
&PLIP = 'myprocedure_pp.r'
&IProc = 'pList'
&mode1 = INPUT
&parm1 = pc_parameter
&datatype1 = CHARACTER
&mode2 = OUTPUT
&parm2 = pc_msg
&datatype2 = CHARACTER
}
regards.
serial number for such orders with be printed out accordingly.i've prepared 10 fields for user to key in the
order but it's not necessary for them to key in every fields. At my viewer procedure, i pass all the
fields' parameter in a string(regardless if it is filled) to my PLIP prosedure to run the print function. I am not sure
how to loop through the parameter string to find the field that is filled and print out the serial numbers accordingly.
Below is the example(in my viewer procedure).Please advice.
pc_parameter = "".
pc_parameter = pc_parameter + gc_s1 + CHR(1).
pc_parameter = pc_parameter + gc_s2 + CHR(1).
pc_parameter = pc_parameter + gc_s3 + CHR(1).
pc_parameter = pc_parameter + gc_s4 + CHR(1).
pc_parameter = pc_parameter + gc_s5 + CHR(1).
pc_parameter = pc_parameter + gc_s6 + CHR(1).
pc_parameter = pc_parameter + gc_s7 + CHR(1).
pc_parameter = pc_parameter + gc_s8 + CHR(1).
pc_parameter = pc_parameter + gc_s9 + CHR(1).
pc_parameter = pc_parameter + gc_s10.
/*launch my super procedure to run the print function*/
{dynlaunch.i
&PLIP = 'myprocedure_pp.r'
&IProc = 'pList'
&mode1 = INPUT
&parm1 = pc_parameter
&datatype1 = CHARACTER
&mode2 = OUTPUT
&parm2 = pc_msg
&datatype2 = CHARACTER
}
regards.