Advertisement
johnorork

Untitled

Apr 15th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. rebol []
  2. do %filtimp.r
  3.  
  4. user-data: func [ fields [block!]
  5. /local bl
  6. ][
  7. bl: copy []
  8. foreach field fields [
  9. append bl field
  10. attempt [ append bl load get-face do field ]
  11. ]
  12. bl
  13. ]
  14. validation-rule: [
  15. vname: string!
  16. vdate: date!
  17. vtime: time!
  18. vinc: decimal!
  19. ]
  20.  
  21.  
  22. view layout [
  23. text "name" vname: field
  24. text "edate" vdate: field
  25. text "etime" vtime: field
  26. text "income" vinc: field
  27.  
  28. button "validate" [
  29. probe user-data [ vname vdate vtime vinc ]
  30. import/else user-data validation-rule 'errors
  31. ]
  32. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement