Can anyone plz explain me how to merge two values and string in a buffer .
It doesn't work with buff.operator +=("string");
Can anyone plz explain me how to merge two values and string in a buffer .
It doesn't work with buff.operator +=("string");
had did it. But it did not work to merge the variables value. by its name.
Variables value? what kind of variables?
Also always post your questions in relevant sections(this one belongs to Symbian c++ section).
It may be Java too (perhaps Qt, perhaps even Flash), let us wait until Eshajari tells which platform he is working with.
Eshajari: it may be a good idea writing a short example about what you want.
Like "I have int a=5 and String b="string", and I want them to be merged as "string5"."
Thank u for reply.
I have a latitude value and a registration value. Wanna send it to server by merging its value in a single string . but latitude are in different format so cant merge it with the number. Any suggestion to do this possible.
Well i guessed symbian c++ with what was suggested in #2 & she tried
Regarding appending the lat/long(assuming they are in TReal) to a TBuf:
const TInt KMaxFolatLength = 15;
const TInt KDecimalPos = 5;
TBuf<20>tempLat;
TBuf<20> tempLong;
TRealFormat format( KMaxFolatLength, KDecimalPos );
format.iType = KRealFormatFixed | KDoNotUseTriads;
tempLat.Num(iLatitude,format);
tempLong.Num(iLongitude,format);
Where iLatitude & iLongitude are lat/long in TReal variables. So now you have lat & long in TBuf's & you can append them with other strings.
Yes sir I m asking about symbian c++ plateform. and using it by carbide c++.
Actually wanted it as a TDes formate.
Try comment #7 as vineet jain has said.
convert it into TBuf and then append and send to server.