×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    Question problem in reading sms index

    hi all
    i'm developing a windows application using c# to read the incoming SMS from nokia 7210 attached to the pc, i used this method to obtain the incoming sms
    public void read()
    {
    messageItemObj=(NokiaCLMessaging.ShortMessageItem)smsObj.ReadSMS(NokiaCLMessaging.ShortMessageMemory.SHORTMESSAGE_MEMORY_DEFAULT,2,1);
    deliverObj=(NokiaCLMessaging.IGSMDeliver)messageItemObj.TypeProperties;

    }
    the 2 refer to the folder id= inbox,the 1 means the first sms in inbox the app was runing well,untill sudunly raise an error that it's empty location,and to read the first sms i had to change the index from 1 to 6 !!!!!!!!!
    i've tried the application with another mobile 6210 and the problem is still there can anybody help me
    thanks

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    1

    sms index

    i think the sms index works different
    like in a database, for example:
    you get a sms (index of the sms =1)
    you get a sms (index of the sms =2)
    you get a sms (index of the sms =3)
    you get a sms (index of the sms =4)
    you delete the sms with sms-index 2
    you delete the sms with sms-index 3
    you get a sms (index of the sms =5)

    so you can see: it is not a range

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×