DEFINE NEW GLOBAL SHARED PRIVATE STREAM stream-nameNEW SHARED STREAM stream-nameNEW GLOBAL SHARED STREAM stream-nameSHARED STREAM stream-namestream-namePRIVATE STREAM
Note: STREAM stream-nameInclude the DISPLAY statement in the r-dfstr2.p procedure in the r-dfstr.p procedure for efficiency. (It is in a separate procedure here to illustrate shared streams.)
DEFINE SHARED STREAM rpt.
DEFINE SHARED BUFFER xitem FOR Item.DISPLAY STREAM rpt ItemNum ItemName WITH NO-LABELS NO-BOX.
You cannot define a SHARED or NEW SHARED stream in a class definition (.cls) file. If you do, ABL generates a compilation error.
You can overcome the limitations on SHARED or NEW SHARED streams by using stream handles. For more information, see the Stream object handle reference entry and the chapter on alternate I/O sources in OpenEdge Development: Programming Interfaces.
INPUT FROM testfile.
For information about limits on the number of streams per procedure, see the application limits appendix in OpenEdge Deployment: Managing ABL Applications.Class-based data member access, DISPLAY statement, INPUT CLOSE statement, INPUT FROM statement, INPUT THROUGH statement, INPUT-OUTPUT THROUGH statement, OUTPUT CLOSE statement, OUTPUT THROUGH statement, OUTPUT TO statement, PROMPT-FOR statement, RUN statement, SEEK function, SEEK statement, SET statement, Stream object handle
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |