Skip to main content
Skip table of contents

p$tdv:allg:ParaEinf


p$tdv:allg:ParaEinf

Insertion of an entry into the given array. The subsequent entries are moved back. The entry is created and must be assigned a value afterwards.

Please note: The name, which is passed in Arrayname is passed indirectly in a string, and is therefore surrounded in quotation marks. Furthermore the parameter has to be global!

Please note: By the insertion, Number is increased by 1. The parameter for administration of the number of filled entries has to be adjusted.

Syntax:

Status = p$tdv:allg:Paraeinf( Arrayname , Index , Count )

 

Argument

Type

Meaning

 

Array name

String

Name of the parameter array (as a string)

 

Index

Integer

Index of the entry to be inserted

 

Number

Integer

Max. number of entries in array or 0 if the function is supposed to calculate the number by itself. In this case the first undefined array entry serves as stop criterion

Result:

Integer

0 : everything ok
–1: No free array index could be found. The array is full!

Example:

p$TDV:Allg:ParaEinf( 'Clients', 3, 0 )
Clients[3] = 'Mustermann'

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.