Ok thanks for your help.
Originally Posted by kkrish Hi, You can use HBuf as well but the simple way is: TBuf<32> st[3]; st[1].Copy(_L("Alice")); st[2].Copy(_L("Jeneffer")); st[3].Copy(_L("Christine")); for(TInt i=0; i<3; i++) { use st[i]... } hope this will help you. You can use HBuf also. It is a bit disappointing that the use of C style arrays should be recommended by a FNC, they should be avoided in general in Symbian, and in particular as has been mentioned there are descriptor specific arrays which should be used in preference.
yep, I agree that the CDesCArray options I suggested in the 3rd post would be better than TBuf arrays.. Anyway, people can do it anyway they want to..
Originally Posted by kkrish Hi, You can use HBuf as well but the simple way is: TBuf<32> st[3]; st[1].Copy(_L("Alice")); st[2].Copy(_L("Jeneffer")); st[3].Copy(_L("Christine")); for(TInt i=0; i<3; i++) { use st[i]... } hope this will help you. You can use HBuf also. I tried to use it but it says--"undefined identifier st". why??? another thing shoul i start from st[1] or st[0] ??
I would still suggest on using CDesCArray.
Originally Posted by Md. Kayesh I tried to use it but it says--"undefined identifier st". why??? another thing shoul i start from st[1] or st[0] ?? Check whether you have include necessary header files or not. Should start from st[0]
Also check RArray<TPtrC>.
Forum Rules