Syntax
VMINT16 vm_gsm_sms_get_message_id(
    VM_GSM_SMS_BOX box_type, 
    VMUINT16 message_index
);
ContentsIndex
PreviousUpNext
vm_gsm_sms_get_message_id
Example
Syntax
VMINT16 vm_gsm_sms_get_message_id(
    VM_GSM_SMS_BOX box_type, 
    VMUINT16 message_index
);
Description

Gets the message ID of the message in the box, as specified by message_index.

Parameters
Parameters 
Description 
VM_GSM_SMS_BOX box_type 
[IN] Message box. 
VMUINT16 message_index 
[IN] The position of the message in the message box. The following example illustrates the add/delete message. For example: msg_id_list[message_index] = message_id; msg_id_list[0]=0-------------------msg_id_list[0]=0-------------msg_id_list[0]=0 msg_id_list[1]=1--delete msg_id=2--msg_id_list[1]=1--add a msg--msg_id_list[1]=1 msg_id_list[2]=2------------------>msg_id_list[2]=3------------>msg_id_list[2]=2 msg_id_list[3]=3------------------------------------------------msg_id_list[3]=3 
Returns

The message ID, if it is a non-negative number. It returns -1, if the message 

specified by the message_index does not exist.

Example
void custom_sms_get_inbox_message_id(void)
{
    VMINT16 message_id = 0;
    message_id = vm_gsm_sms_get_message_id(VM_GSM_SMS_BOX_INBOX, 0);
    if(message_id < 0)
    {
        vm_log_debug("The inbox message id of the message_index 0 does not exist");
    }
}
File

vmgsm_sms.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.