PHREEQC-BASIC

get_def(<str::datablockname>,<int:rownr>)

get_def(<str::datablockname>,<int:colnr>|<str:heading>,<int:rownr>|<str:label>)

get_def(<str::datablockname>,{<int|str:index>})

MY-BASIC

get_def(<str::datablockname>,<int:rownr>)

get_def(<str::datablockname>,<int:colnr>|<str:heading>,<int:rownr>|<str:label>)

get_def(<str::datablockname>,{<int|str:index>})



It gets the value at an identified position in a data block defined with datablock or with put_def()defined in scripts.


Data blocks created with datablock require a name a row indicator (for a vector type) or a column and row indicator. These indicators can be either integers or strings given that -headings or a -rowid are specified for the columns and rows, respectively.

Data blocks that have been initiated within scripts with put_def() require a name, and a series of indices (numeric and/or alphanumeric).


Return value: flt or str



Arguments


datablockname

str: Case sensitive name of the data block name

colnr

int: Column number in a data black defined by datablock. The data block columns are zero-based indexed by default, except if a different origin is specified with -origin.

rownr

int: Row number in a data block defined by datablock. The data block rows are zero-based indexed by default, except if a different origin is specified with -origin.

label

str: Case sensitive row indicator for data block defined by  datablock. The label is looked up in the column with the heading defined by -rowid.

heading

str: Case sensitive heading of the columns in a data block defined by datablock. Headings are defined by -headings.

index

int|str: one index or more indices to indicate a particular value as was used to define the variable using put_def(). Indices can be numeric or alphanumeric.