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

Associated Research 5500DT AC Withstand Voltage Tester CALIBRATED ,test probes
$349.0
Associated Research 5500DT AC Withstand Voltage Tester CALIBRATED ,test probes pictureOmron STI 43884-0010 Transient Voltage Suppressor 30 VDC 438840010 Bag of 2 New
$12.99
Omron STI 43884-0010 Transient Voltage Suppressor 30 VDC 438840010 Bag of 2 New  pictureYeeco Dc Dc Voltage Regulator 7-36V To 1.25-32V Buck Converter Step Down Power S
$22.72
Yeeco Dc Dc Voltage Regulator 7-36V To 1.25-32V Buck Converter Step Down Power S pictureGenerator Round AVR & Carbon Brush for Automatic Voltage Regulator 2kw 3kw 4kw
$20.88
Generator Round AVR & Carbon Brush for Automatic Voltage Regulator 2kw 3kw 4kw pictureBIERER MODEL VD1000 Digital Voltage Detector
$141.0
BIERER MODEL VD1000 Digital Voltage Detector picture






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