Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rebol []
- ;when I change the literal values in the original testimp program it won't produce errors if i change them to strings but
- ; I cant do that because I want to change them to dates times and decimals for the other fields . If i do that then the program blows
- ; blows up. I'm just not sure what variables it needs from my layout or whether I need intermediate variables.
- ;renamed filtered-input.r since it doesn't seem to be able to be read by the interpreter
- do %filtimp.r
- user-data: [
- name vname/text
- edate vdate/text
- etime vtime/text
- einc vinc/text
- ]
- validate-rules: [
- name: string!
- edate: string!
- etime: string!
- einc: string!
- ]
- view layout [
- text "name" vname: field
- text "edate" vdate: field
- text "etime" vtime: field
- text "income" vinc: field
- button "validate" [
- import/else user-data validate-rules 'errors
- ]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement