Product Documentation

c-treeACE V10.0 Update Guide

Previous Topic

Next Topic

Sequence Attribute Structure

#define MAX_SEQ_NAME_LEN 32 /* maximum length of sequence name */

#define ctSEQINC 0x01 /* incrementing sequence */

#define ctSEQDEC 0x02 /* decrementing sequence */

#define ctSEQCYC 0x04 /* cycling sequence */

#define ctSEQTRM 0x08 /* terminating sequence */

#define ctSEQLIM 0x10 /* sequence has a limit */


typedef struct ctseqattr {

LONG8 seqini; /* initial sequence value */

LONG8 seqcur; /* current sequence value */

LONG8 seqinc; /* sequence increment or decrement amount (always positive) */

LONG8 seqlim; /* sequence limit */

TEXT seqtyp; /* sequence type: incrementing or decrementing and cycling or terminating */

TEXT sequnk; /* non-zero indicates current sequence value is unknown */

TEXT seqnam[MAX_SEQ_NAME_LEN+1]; /* sequence name */

TEXT seqpad;

} ctSEQATTR, ctMEM * pctSEQATTR;

TOCIndex