ObjectGears Help

Forum   ObjectGears (Version:

Script object Sequence

This object offers functions for work with integer sequences.

Script functions


Name Description
int GetNextValue( string code) Function returns a new value from sequence.
string GetNextValueWithFormat(string code, string format) Function returns a new value from sequence in the given format.

Object call


Call example

This call returns integer value from the sequence.

var number2 = OG.Sequence.GetNextValue( 'mySequence');

This call returns text value from the sequence, e.g.: INC000123.

var number = OG.Sequence.GetNextValueWithFormat( 'mySequence', 'INC{#:000000}');

This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information