GetSerNo(filename, str_key);
filename
A string specifying the path and filename of the file containing the number sequence.str_key
Calculates the next counter value in a number sequence according to a specified key. Returns the next counter value and amends the value to the number sequence.$a="C:\stream\serve\sernofile";
$b="test";
$c=getserno($a,$b);Contents of the file sernofile:test0 0test 10 50test1 57 50 100Result: $c=11
column1 = key
column2 = current counter value (incremented after call) column1 = key
column2 = current counter value (incremented after call)
column3 = maximum counter value (When this number is reached, the counter will be set to zero) column1 = key
column2 = current counter value (incremented. after call)
column3 = minimum counter value
column4 = maximum counter value (when this number is reached, the counter will be set to the minimum counter value)
OpenText StreamServe 5.6 | Updated: 2013-03-01 |