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

VALV. CAMOZZI 458-015-22 CAMOZZI 458-015-22
$101.58
VALV. CAMOZZI 458-015-22   CAMOZZI 458-015-22     pictureNVS4324-0009F SMC NEW Solenoid Valve NVS43240009F
$39.99
NVS4324-0009F SMC NEW Solenoid Valve NVS43240009F pictureMAC Solenoid Valve 55B-12-PI-871JB with PID-871JB 24vdc 3/8" ports
$24.0
MAC Solenoid Valve 55B-12-PI-871JB with PID-871JB 24vdc 3/8NEW DORMEYER 1000-M-1 SOLENOID 120V 60HZ 4X239
$42.0
NEW DORMEYER 1000-M-1 SOLENOID 120V 60HZ 4X239 picturePARKER UNIT VALVE 02F30C1106A 120V SOLENOID
$48.0
PARKER UNIT VALVE 02F30C1106A 120V SOLENOID picture






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