ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

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

OG.Sequence

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