Icon  IgnoreDefaultButton

Chapter 3: Property Descriptions and Usage

ID

Applies to

SMSMessage objects

Description

If the SMSSession Send function is successful, the ID property is populated with a value that identifies a specific message.

Usage


In scripts

The ID property takes a long value. This example checks that the Send function was successful, then, if the ID property is not null, writes it to a single line edit box:

li_ret = g_smsSess.Send(g_smsMsg, g_smsAddr)
if li_ret <> 1 then
   sle_1.text = "Send failed. Return value: " + &
      String(li_ret)
else
   if not IsNull(g_smsMsg.ID) then
      sle_1.text = string(g_smsMsg.ID)
   else
      sle_1.text = "Message ID is null"
   end if
end if





Copyright © 2004. Sybase Inc. All rights reserved. IgnoreDefaultButton

View this book as PDF