Next, the field names are loaded into the first row. The column size of the grid is likewise set to the number of fields 1 because the first column contains the border for the grid. The row size of the grid is set to the number of rows 1 because the field names are to be stored in the first row (i.e. The data pipeline is opened and all the data is traversed to count the total number of records. This procedure populates a string grid with pipeline data. In this way you can avoid repeating the same routine in several units. You can then add this common unit to the uses clause of other units where the utility routines are needed. You can store routines such as this one in a common unit when building an application. The procedure loads all of the data from the pipeline into the string grid. You pass the procedure a data pipeline (TextPipeline, JITPipeline, DBPipeline, etc) and a string grid. This procedure is written in a generic manner so that it can be reused as needed. Reports directory.ģ Paste the code at the bottom of the implementation section of the rbFrmJIT unit. Procedure PipeDataToGrid(aPipeline: ^TppDataPipeline aGrid: TStringGrid) Ģ Copy the PipeDataToGrid routine from form dm0139 in the RBuilder\Demos\1. 1 Add the following procedure declaration to the bottom of the interface section for the unit (just below the end of the form class declaration and just above the var declaration).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |