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”);
this.km = 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(this.km);
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);