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
PIN: N/A
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
{
//super(NO_VERTICAL_SCROLL);

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
Shakeel
Offline  
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

Tektronix DC503A Frequency Counter with manual and TM503 Mainframe
$101.61
Tektronix DC503A Frequency Counter with manual and TM503 Mainframe pictureHP E1401B VXI High Power MainFrame W/O Cards T18102
$125.0
HP E1401B VXI  High Power MainFrame W/O Cards T18102 pictureHP 54120A Digitizing Oscilloscope Mainframe
$460.75
HP 54120A  Digitizing Oscilloscope Mainframe pictureHP Sweep Oscillator Mainframe with Plug In Slot (8620B)
$253.41
HP Sweep Oscillator Mainframe with Plug In Slot (8620B) pictureFluke Hydra 2620A CALIBRATED MAINFRAME software, cables, NO INPUT MODULE
$180.0
Fluke Hydra 2620A CALIBRATED MAINFRAME software, cables, NO INPUT MODULE picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.