×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    58

    extracting data from form field text editor

    hi to all dears,


    i am new to symbian.

    right now i m trying to extract a data from the form field plain text editor. for this i m using following line as a code

    " CEikEdwin* iEditor = static_cast <CEikEdwin*> (CEikDialog::Control(EMyAppControlIdTextEd)); in following erro"


    i m getting following errors

    "1.function call '[CUI_LoginAppView].Control(int)' does not match
    2.'CEikDialog::Control(int) const' (non-static)"


    plz help me out to solve this problem.
    waiting for reply.


    thanks and regards

    syed shakeel ahmed

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: extracting data from form field text editor

    CEikDialog is a class, thus CEikDialog::Control(...) could be an invocation of a static method of that class. However CEikDialog has no such static method, Control is a regular member function.
    You can find documentation about dialogs and other UI stuff if you visit Docs above, then Documentation, Symbian C++, UI, and you will find something like "S60 Platform: Avkon UI resources x.y".
    Also note that accessing the bare controls of a dialog is rarely necessary, CEikDialog provides methods like GetEdwinText/SetEdwinTextL for example.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: extracting data from form field text editor

    Agree with wiz and in case you really need to access the control then you can try

    Code:
    CEikEdwin* someEdwin = static_cast< CEikEdwin* >(ControlOrNull( EMyAppControlIdTextEd));
    Cheers,
    Mayank

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    58

    Re: extracting data from form field text editor

    hi to all,

    thanx for reply wizard_hu_


    as u have toldy tried in this wayd that control is global function so i had alread in this manner but it is still not working.

    "CEikEdwin* iEditor = static_cast <CEikEdwin*> (Control(EMyAppControlIdTextEd)); "

    then there is error: "undefined identifier".

    i have also tried in this manner

    "CEikEdwin* iEditor = (CEikEdwin*) (Control(EMyAppControlIdTextEd));"


    then there is same error of function mismathing.

    plz help out for this problem.

    actually i m trying for the application of UI Login in that for the verification of the username and password. and

    username is the field as text editor.so for verification i hav to read or extract the text from that field.

    if u hav any link of application like login then plz tell me.

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    58

    Re: extracting data from form field text editor

    hello to all,

    thanx for replying mayank

    "CEikEdwin* someEdwin = static_cast< CEikEdwin* >(ControlOrNull( EMyAppControlIdTextEd));"


    this also giving the same errors.

    function call '[CUI_LoginAppView].Control(int)' does not match
    'CEikDialog::Control(int) const' (non-static)"

    waiting for a all your vauable reply.

    thanx and regards
    syed shakeel

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: extracting data from form field text editor

    Note that all these methods are supposed to be used inside a class which you inherit from CEikDialog. That is the Symbian way.
    Have you checked the suggested documentation? I have checked it now, and it seems to be correct to me.

Similar Threads

  1. How to put some text on a form?
    By robert.borkow in forum Symbian
    Replies: 1
    Last Post: 2009-03-02, 20:04
  2. Extracting Data via P2P
    By bladetech69 in forum Near Field Communication
    Replies: 3
    Last Post: 2009-02-17, 11:52
  3. Form supports enumerated text control
    By gpalvia in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-10-05, 09:17
  4. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56
  5. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×