Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. //mich:Extraer Contenido del Text
  2. Text tText = (Text) getControl("tbox_pago", Text.class);
  3. ent_tText = tText.getValue();
  4.  
  5. //mich:Validar Texto de Text
  6. Pattern patronn = Pattern.compile("[^0-9.]");
  7. Matcher sal_tText = patronn.matcher(ent_tText);
  8.  
  9. if(!sal_tText.find() && sal_tText != null){
  10. Label nLabel = (Label) getControl("lbl_war_pago", Label.class);
  11. nLabel.setLabel("Cantidad Valida");
  12. }else{
  13. Label nLabel = (Label) getControl("lbl_war_pago", Label.class);
  14. nLabel.setLabel("*Error: Cantidad no Valida");
  15. }
Add Comment
Please, Sign In to add comment