what is the error?(TPTrC.Locate())

Login to reply to this topic.
Thu, 2007-09-20 12:00
Joined: 2007-05-15
Forum posts: 137

Hi friends,

I use the following lines:-

CRichText& body=iSmsMtm->Body();
TPtrC SmsBody(body.Read(0));
TInt separator=SmsBody.Locate(",");//get error here

Can somebody tell where is the error!!!!


Thu, 2007-09-20 12:52
Joined: 2007-05-15
Forum posts: 137
Re: what is the error?(TPTrC.Locate())

Solved it->

TInt separator=SmsBody.Locate(',');//use of single quotes instead of double quotes.......

  • Login to reply to this topic.