Queries the next message in the list and eventually copies it to the one specified: the iteration must begin with a call to the first( ) method for the first message.
Syntax |
next(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 |