Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

DELETE action


Function
The action deletes one or more rows from local structured variable (i.e. local variable of Record type).
Declaration


Blok kódu
languageesl
themeConfluence
 DELETE _struct, rowIdx
 
or
 


Blok kódu
languageesl
themeConfluence
DELETE _struct, rowFrom, rowTo
Parameters


_structin/outIdentifier of local variable of Record type.
rowIdxinIdentifier of Int type - row to be deleted.
rowFrom, rowToinIdentifier of Int type.
Description
The first variant of the action deletes the row specified by the parameter rowIdx from the local variable defined by the parameter _struct. The value of the parameter rowIdx must be within the interval 1 ... _struct\DIM. For other value, the action will generate the error _ERR_RANGE_ERROR.

The second variant of the action deletes the rows within the range of <rowFrom, rowTo> from the local variable defined by the parameter _struct.
Example


Blok kódu
languageesl
themeRDark
RECORD (SD.RecordDef) _struct
 
 REDIM _struct[10]
 ; deleting the first row
 DELETE _struct, 1

Info
titleRelated pages:

Script actions


DELETE action


Function
The action deletes one or more rows from local structured variable (i.e. local variable of Record type).
Declaration


Blok kódu
languageesl
themeConfluence
 DELETE _struct, rowIdx
 
or
 


Blok kódu
languageesl
themeConfluence
DELETE _struct, rowFrom, rowTo
Parameters


_structin/outIdentifier of local variable of Record type.
rowIdxinIdentifier of Int type - row to be deleted.
rowFrom, rowToinIdentifier of Int type.
Description
The first variant of the action deletes the row specified by the parameter rowIdx from the local variable defined by the parameter _struct. The value of the parameter rowIdx must be within the interval 1 ... _struct\DIM. For other value, the action will generate the error _ERR_RANGE_ERROR.

The second variant of the action deletes the rows within the range of <rowFrom, rowTo> from the local variable defined by the parameter _struct.
Example


Blok kódu
languageesl
themeRDark
RECORD (SD.RecordDef) _struct
 
 REDIM _struct[10]
 ; deleting the first row
 DELETE _struct, 1

Info
titleRelated pages:

Script actions