Queries the first message in the list and eventually copies it to the one specified.
Syntax |
first(bccmsg @msg): bool |
---|---|
msg |
Reference to destination message |
Result |
Returns TRUE if a message is available and has been copied to msg, FALSE otherwise |
Example usage
Example of complete iteration of a message list, from first to last:
bccmsg msg bccmsglist msglist
; Iterates all the messages in the list if (msglist.first(@msg)) do ; Message processing end (msglist.next(@msg)) end |