BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-23-2008, 11:13 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default obtain text from Field

Please Login to Remove!

How can I obtain the text value from a field, I am use this code but it's not correct, give me error in command campo = (EditField)field;

private class FocusListener implements FocusChangeListener {
public void focusChanged(Field field, int eventType) {
if (eventType == FOCUS_GAINED) {
EditField campo;
campo = (EditField)field;
aviso = campo.getText();
Dialog.inform(aviso);
}
}
}
FocusListener listener = new FocusListener();
Offline  
Old 04-23-2008, 11:20 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You look a little confused, try this for starters: BlackBerry Dev Lesson 2 - Introducing Fields - should get you on your way.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 04-23-2008, 02:19 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much I have solved it.
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

S29GL12811FFI010 QTY 5 IC FLASH 128MBIT 110NS 64-FBGA SPANSION
$20.0
S29GL12811FFI010 QTY 5 IC FLASH 128MBIT 110NS 64-FBGA SPANSION picturePIC18LF4550-I-PT QTY 3 IC MCU 8BIT 32KB FLASH 44-TQFP MICROCHIP
$16.0
PIC18LF4550-I-PT QTY 3 IC MCU 8BIT 32KB FLASH 44-TQFP MICROCHIP pictureS29AL016D90TFI01 QTY 5 IC,EEPROM,NOR FLASH,1MX16/2MX8,CMOS,48-TSSOP SPANSION
$30.0
S29AL016D90TFI01 QTY 5 IC,EEPROM,NOR FLASH,1MX16/2MX8,CMOS,48-TSSOP SPANSION pictureFlash Furniture Kids White Plastic Folding Chair
$17.59
Flash Furniture Kids White Plastic Folding Chair picturePC28F256P30TF IC FLASH 256MBIT 100NS 64EZBGA 256P30TF INTEL
$9.0
PC28F256P30TF IC FLASH 256MBIT 100NS 64EZBGA 256P30TF INTEL picture






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