push_def
|
MY-BASIC |
push_def(<str::datablockname>,{<str|flt:variable>}[,"..."]) push_def(<str::datablockname>,"addel",str:rowidentifer|int:rownumber,{<str|flt:variable>}) |
It adds a new record at the end of a data block defined previously with datablock.
If a row identifier (-rowid) is defined, the label of the record will be added as well.
If the last argument equals "..." and the push_def definition contains less elements than the datablock, the new record in the datablock will be filled with zero's for the missing elements.
In case the second argument is "addel" or "add", an extra element will be added to a specific record indicated by the row number or the row identifier (-rowid). In case the record is not present, it is added at the end of the table (If a row identifier (-rowid) is defined, the label of the record will be added as well).
Note - it does not function for a data block defined via put_def() in scripts.
Arguments
|
datablockname |
str: Case sensitive name of the data block name |
|
variable |
str|flt: List of variables that will be added as an extra record in the data block defined by datablock. |