MBNextReadMessage

Purpose

This function returns the next read message in the given mailbox. To get all the read messages, call MBFirstReadMessage, then call MBNextReadMessage.

Parameters

Parameter: Line
Type: Integer
Description: The phone line to access.

Parameter: mb
Type: Mailbox
Description: The mailbox to access. This is a reference to a mailbox object. Use MBGet to get a mailbox.

Returns

Return value: File name
Type: String
Description: The file name of the voice message. Note that this file name does not include the full path to the file. Voice messages are saved in the directory messages in the HomeSeer application directory. To create the full path to the file, use the GetAppPath function like:

path = hsp.GetAppPath & "\messages\" & message