String array passing by reference
| Thu, 2005-09-15 06:47 | |
|
|
I have a string array ... defined as follows: typedef TBuf<100> TTextLine; RArray <TTextLine> iTextLines; I want to pass the iTextLines array from one class to another by reference. Can anybody tell me the correct syntax for doing this? Is an RArray of TBufs the appropriate choice for this? Thanks "If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein |






Forum posts: 141
to pass the string array by reference, better use RPointerArray<HBufC>.
Use like this,
TBuf<100>itext;
itext.Copy(_L("alsdaf"));
RPointerArray<HBufC>iArray;
iArray.Append(itext.AllocL());
function(iArray);
regards,
eswar
Forum posts: 7
That was a wonderful one........
Please help me display the contents of an RArray....
My RArray is like this......
RArray<HBufC>ifileList;
Thanx in advance
priya
Forum posts: 124
Use InfoPrint or RDebug::Print () t display it !!
Forum posts: 141
try this,
RArray<HBufC>ifileList;
ifileList.At(1).Des(), where 1 is index in array, now you print it anywhere