Comment Attachment Variables

The following variables can be used to supply values to existing or new comments in the attachments database files.

The variable names in this table include the three-character database file prefix (<Prefix>). For example, if the program is using the file COMPANY, then the variable CMT<Prefix>-TYPE would be CMTCOM-TYPE .

Note: When programing a hard return, the actual field to set is called CMT<Prefix>-OPT-HARD-RTN and it has two 88 levels: CMT<Prefix>-HARD-RTN and CMT<Prefix>-NO-HARD-RTN. Set the OPT field using one of the 88 levels.
Variable Description
CMT<Prefix>-TYPE A one-character user-defined type of the comment as defined in the SC.or file or by the routine 900-CREATE-CMT.
CMT<Prefix>-SIZE The size of the comment, in bytes.
CMT<Prefix>-NAME The name of the comment, as defined in the SC .or file or by the routine 900-CREATE-CMT. The name can be up to 50 characters long.
CMT<Prefix>-EXT-TEXT Up to 127 bytes of text from the comment. The amount of text put into this buffer is determined by the variable CMT<Prefix>-EXT-TEXT-SZ.
CMT<Prefix>-EXT-TEXT-SZ

The size of the comment text segment retrieved, stored, or appended. You can specify segments up to 127 bytes long.

To preserve spacing within a comment, you can set this variable to the size of the text being appended to the comment.

A value of zero in this variable tells the API to trim trailing spaces. Lawson recommends using a value of zero for this variable when the end of the comment is being appended.

CMT<Prefix>-EXT-OFFSET The position at which to start reading text.
CMT<Prefix>-NOT-EOT When TRUE, there is still more text in the comment that has not been read.
CMT<Prefix>-EOT When TRUE, the end of the text in the comment has been reached.
CMT<Prefix>-OPT-HARD-RTN When TRUE, carriage returns in the comment will be preserved.
CMT<Prefix>-OPT-SOFT-RTN When TRUE, word wrap is applied to the text read into the CMT<Prefix>-EXT-TEXT buffer.
CMT<Prefix>-NO-HARD-RTN When TRUE, carriage returns in the comment are ignored.
CMT<Prefix>-NO-SOFT-RTN When TRUE, word wrap is not applied to the text read into the CMT<Prefix>-EXT-TEXT buffer.
CMT<Prefix>-DATE-USER If TRUE, it will use whatever was put into date and time fields instead of auto-filling creation and modification date and time.
CMT<Prefix>-CMT-ORDER

The sort order that determines which attachments are retrieved.

Enter one of the following to sort by:

0 Name.

1 Date and time of creation.

2 Date and time of modification.

URL<Prefix>-CREATE-DATE Date of comment creation.
URL<Prefix>-CREATE-TIME Time of comment creation.
URL<Prefix>-CREATE-USER User who created the comment.
URL<Prefix>-MODIFY-DATE The last date that the comment was modified.
URL<Prefix>-MODIFY-USER The user who last modified the comment.
URL<Prefix>-FOUND-SW

0 = Found.

1 = Not found.

3 = Error.

CMT<Prefix>-MODE

0 = Normal mode.

1 = Keyfind mode.