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

JOHNSON CONTROLS P545NCB-22C Lube Oil Control, Electronic, 15 PSI
$120.0
JOHNSON CONTROLS P545NCB-22C Lube Oil Control, Electronic, 15 PSI pictureJohnson Controls VMA 1410-0
$25.0
Johnson Controls VMA 1410-0 pictureJohnson Controls Metasys Integrator AS-MIG201-0 Rev AG
$650.0
Johnson Controls Metasys Integrator AS-MIG201-0 Rev AG pictureJohnson Controls Metasys XT9100 Extension and XP9102 Expansion Modules Pair
$55.0
Johnson Controls Metasys XT9100 Extension and XP9102 Expansion Modules Pair pictureJohnson Controls SCFM Filter Element A-4000-605 ZA-291
$19.99
Johnson Controls SCFM Filter Element A-4000-605 ZA-291 picture






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