Recuperar dados digitados

1 resposta
B

Pessoal, bom dia!

Como eu pego os valores digitado pelo usuario em um TextField para gravar no rms? Segue abaixo um trecho do código.

// inicializar Commands

this.sair = new Command(Sair, Command.EXIT, 0);

this.menu = new Command(Gravar, Command.SCREEN, 1);

this.historico = new Command(Histórico, Command.SCREEN, 2);

this.carro = new Command(Veiculo, Command.SCREEN, 4);

this.data = new DateField( “” , DateField.DATE_TIME );
// form de Combustivel

this.combustivel = new Form(“Controle de Combustivel”);

<a href="http://this.km">this.km</a> = new TextField(“Odômetro(KM):”, “”, 20, TextField.ANY);

this.litro = new TextField(“Litros:”, “”, 20, TextField.ANY);

this.valor = new TextField(“Valor:”, “”, 20, TextField.ANY);

this.voltar = new Command(“Voltar”, Command.BACK, 2);
//adiciona-se os componentes ao Form Combustivel

this.combustivel.append(<a href="http://this.km">this.km</a>);

this.combustivel.append(this.litro);

this.combustivel.append(this.valor);

this.combustivel.addCommand(this.menu);

this.combustivel.addCommand(this.historico);

this.combustivel.addCommand(this.carro);

this.combustivel.addCommand(this.sair);

this.combustivel.setCommandListener(this);

this.combustivel.append(this.data);

1 Resposta

Realm

por exemplo:

String kilometros = this.km.getString();
Criado 1 de novembro de 2006
Ultima resposta 3 de nov. de 2006
Respostas 1
Participantes 2