BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 01-04-2010, 04:30 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Dec 2009
Model: 7100T
Carrier: java
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up problem to get String from ActiveAutoTextEditField

Please Login to Remove!

i want to get ActiveAutoTextEditField Text in String.
i am getting string in str1 and str2 below, but i do not get
in to String xx1 and xx2?
though i have defile Loing and Password as public member variable.
it is not giving error, while to complile but it is not giving string when i am debugging and running. kindly help me and if error then correct the core.

class TestScreen extends MainScreen{ // Class
//private VerticalFieldManager verticalManager;
private HorizontalFieldManager hrzManager;
HealthCareDemo screen;
ActiveAutoTextEditField Login;
PasswordEditField Password;

String xxx; // Member variable

HorizontalFieldManager _fieldManagerBottom;

TestScreen(int label) // constructor

FieldChangeListener listenerOK = new FieldChangeListener()
public void fieldChanged(Field field, int context)

String str1 = Login.getText();// here I am getting string.
String str2 = Password.getText(); // here I am getting string here.

xxx = str1+"$"+str2; // here I am not getting string in xxx though String xxx is member variable ??????


} // closign of constructor.

public String getNamePassword() // Member function
String xx1= Login.getText();//I am not getting string here????
String xx2 = Password.getText(); //I am not getting string here????

String xxx= xx1+"$"+xx2;
return (xxx);


}// closing of class

thanks and Regards
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.