SCANMSGHDR(conf,start_msg,field,test)

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

FieldhexdecField Description
HDR_ACTIVE0x0E14Message active flag field
HDR_BLOCKS0x044Number of 128 byte blocks in message
HDR_DATE0x055Date message was written
HDR_ECHO0x0F15Echoed message flag
HDR_FROM0x0B11Who the message is from
HDR_MSGNUM0x022Message number
HDR_MSGREF0x033Reference message
HDR_PWD0x0D13Message password
HDR_REPLY0x0A10Message reply flag
HDR_RPLYDATE0x088Reply message date
HDR_RPLYTIME0x099Reply message time
HDR_STATUS0x011Message status
HDR_SUBJ0x0C12Message subject
HDR_TIME0x066Message time
HDR_TO0x077Who the message is to.
These constants are for use with SCANMSGHDR(conf_num,start_msg,field,text) in the FIELD parameter.

See also: MsgToFile