Script functions reference > Script functions in alphabetical order > G > GetGlobalSerNo

GetGlobalSerNo
Syntax
GetGlobalSerNo(key);
key
Description
Returns the next serial number available for the specified key.
Returns
num
-1
Example
Assume the repository table has the following key entry:
invoices   1234   1000   2000
Where:
First column (invoices) – the key
Second column (1234) – current value
Third column (1000) – minimum value
Fourth column (2000) – maximum value
By issuing the following function:
$ser = getglobalserno(“invoices”);
$ser is set to 1234 and the table entry contains:
invoices   1235   1000   2000
OpenText StreamServe 5.6 Updated: 2013-03-01