Previous topic Next topic  

CacheGetCounter( cKeyword, hConnection ) -> nCounter

The function returns the next available incremented number associated with <cKeyword> which defaults to "GENERIC".

The incremented counter is guaranteed unique, guaranteed by Intersystems. Once you call it, there is no way to decrement it to its previous value no matter you use it or not. Also this increment is out of transaction control. So you can always remain assured that the counter you have obtained is unique in context to <cKeyword> throughout the system ( Database Server ).

This is pretty useful in having a unique field in your table which cannot be duplicated by any means.

<cKeyword> is case sensitive so that "Keyword" is not equal to "KeyWord". Take care.