This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== SCANMSGHDR(conf,start_msg,field,test) ====== Returns the first message number in the message base which matches the search criteria. **Example:** integer msgno msgno = SCANMSGHDR(0,1,HDR_TO,"Stan") This function can be used to scan PCBoard message bases for certain information. All fields in the standard header can be searched. There are 15 fields in the standard header. Valid values for field are 1-15. See the list of constants related to this function. ===== MESSAGE HEADER FIELD ACCESS CONSTANTS ===== | Field | hex | dec | Field Description | |-----------------|------|-----|----------------------------------------| | HDR_ACTIVE | 0x0E | 14 | Message active flag field | | HDR_BLOCKS | 0x04 | 4 | Number of 128 byte blocks in message | | HDR_DATE | 0x05 | 5 | Date message was written | | HDR_ECHO | 0x0F | 15 | Echoed message flag | | HDR_FROM | 0x0B | 11 | Who the message is from | | HDR_MSGNUM | 0x02 | 2 | Message number | | HDR_MSGREF | 0x03 | 3 | Reference message | | HDR_PWD | 0x0D | 13 | Message password | | HDR_REPLY | 0x0A | 10 | Message reply flag | | HDR_RPLYDATE | 0x08 | 8 | Reply message date | | HDR_RPLYTIME | 0x09 | 9 | Reply message time | | HDR_STATUS | 0x01 | 1 | Message status | | HDR_SUBJ | 0x0C | 12 | Message subject | | HDR_TIME | 0x06 | 6 | Message time | | HDR_TO | 0x07 | 7 | Who the message is to. | These constants are for use with SCANMSGHDR(conf_num,start_msg,field,text) in the FIELD parameter. **See also:** MsgToFile