Get a sequence number assignment

Script TCA_TOOL

LECTCA

This Funprog is used to get the sequence number assignment for a given document.

Funprog LECTCA(ACTX, MODULE, CPY, LEG, DOC_INDEX, SEQ_CODE, SEQ_ISMANUAL, MESSAGE)
Value Instance ACTXContext
Value Integer MODULEModule value (as given by the local menu #14)
Value Char CPYCompany code
Value Char LEGLegislation code
Value Integer DOC_INDEXDocument index (as defined in the document assignment table)
Variable Char SEQ_CODESequence code to be used
Variable Integer SEQ_MANReturns [V]CST_AYES if a manual sequence number assignment is possible, [V]CST_ANO otherwise
Variable Char MESSAGEError message (blank if no error)

Notes:
* If the counter assignment cannot be found, the function returns [V]CST_AFALSE, otherwise it returns [V]CST_ATRUE.