View Single Post
Old 04-23-2008, 05:35 AM   #8 (permalink)
racsus
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

I have prove your code but never entry in the if... why? this is my code:

Field tmp;
EditField tmp2;
String aviso = "";
tmp = this.getFieldWithFocus();
if (tmp instanceof EditField){
tmp2 = (EditField)tmp;
aviso = tmp2.getText();
}
Dialog.inform(aviso);
Offline   Reply With Quote