Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //mich:Extraer Contenido del Text
- Text tText = (Text) getControl("tbox_pago", Text.class);
- ent_tText = tText.getValue();
- //mich:Validar Texto de Text
- Pattern patronn = Pattern.compile("[^0-9.]");
- Matcher sal_tText = patronn.matcher(ent_tText);
- if(!sal_tText.find() && sal_tText != null){
- Label nLabel = (Label) getControl("lbl_war_pago", Label.class);
- nLabel.setLabel("Cantidad Valida");
- }else{
- Label nLabel = (Label) getControl("lbl_war_pago", Label.class);
- nLabel.setLabel("*Error: Cantidad no Valida");
- }
Add Comment
Please, Sign In to add comment