Parsing array item
| Fri, 2007-08-03 10:22 | |
|
I have array iDetailsArray, of type CDesCArray. //Fetching data from i th location from ArrayWhat i have to do in "IF LOOP" to take data in any TDesC veriable ? Thanks |
|
| Fri, 2007-08-03 10:22 | |
|
I have array iDetailsArray, of type CDesCArray. //Fetching data from i th location from ArrayWhat i have to do in "IF LOOP" to take data in any TDesC veriable ? Thanks |
|
Forum posts: 155
Try this
TBuf<20> tempBuf;
TInt pos = aData.Find( _L("+") );
if(pos == KErrNone)
{
tempBuf = aData.Left(pos);
}
See TDesC in SDK
BR
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 24
Thanks Isha for your suggestion.
I tried that but it's not going in "IF LOOP" Here is my code......
TBuf<20> tempBuf;
TDesC aData=(*iDetailsArray)[3];
TInt pos = aData.Find( _L("#") );
if(pos == KErrNone)
{
// tempBuf = aData.Left(pos);
CEikonEnv::InfoWinL(_L("Test"),_L("In if loop"));
}
Thanks
Forum posts: 24
got soln for this...........
i directly used
(*iDetailsArray)[3].Mid(1);Anyway, thanks for ypur help