Discussion Board

Results 1 to 2 of 2

Thread: SetTextL()

  1. #1
    Registered User jesusdol's Avatar
    Join Date
    Mar 2003
    Posts
    19
    Hi,

    This is my problem:

    my application launches a query with a text input. I want to assign this text input to iAdditionalMenu as shown below. I do not know whether it is right or not. I do not know whether I should use a fuction as SetTextL or any other. In that case, please, explain me how to do it.

    It is very important for me.
    Tahnk you very much.


    TBuf<256> iAdditionalMenu;
    TBuf <20> addString;

    CAknTextQueryDialog* dlg = new (ELeave) CAknTextQueryDialog(addString);

    if(dlg->ExecuteLD(R_MYAPP_TEXT_LAYOUT))
    {
    iAdditionalMenu = addString;
    }
    Last edited by jesusdol; 2004-01-27 at 10:36.

  2. #2
    Nokia Developer Expert veskola's Avatar
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    So if i understand correctly you just want to copy text from addString to iAdditionalMenu ?

    If this is valid, you can do it:
    iAdditionalMenu.Append(addString);

    Check also SDK help, it explains all classes, also this TBuf class and it's base class ("Inherited from TDes16:"). You are able to type 'TDes16' in visual studio editor and click F12 to see the header file...there is lot of usefull methods available.

    After Append method you have same string in two buffers and the second one is quite huge...what wasting of memory :-)

    BTW: TBuf is able to clear within command Zero()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved