Skip to main content
   Is there a ZPL function that returns the number of rows in the MFE?  (ZOS-API has MFE.NumberOfRows, but I don't see this for the macro language.  )


   I want to insert a new blank row at the very end.


   This didn't work:  InsertMFO  N                  where N is a big number, chosen to be greater than the number of rows.





Thanks for your time.





Best regards,


John
You can return the number of operands in the merit function editor (MFE) by using the GETSYSTEMDATA ZPL keyword. GETSYSTEMDATA retrieves lots of system specific data and stores it in one of the pre-defined arrays VEC1, VEc2, VEC3 or VEC4. You can then retrieve the data using the VECx() functions. The number of operands in the MFE is stored in position 28 of the array. The code snippet below shows how to access this data.





GETSYSTEMDATA 1


NumMFOperands = VEC1(28)

Reply