Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Enumerated type creation Re:

From: al:bri:xtra at: 6-Sep-2000 17:00

> I want to constrain the input values for a string field to be either the
words "cancel" or "nocancel".
> REBOL has excellent support for forcing a function argument to be date!,
time!, string!, but I want to increase the restrictions for a particular field and have it throw an error on spurious input.
> Must I homebrew something or did I overlook the built-in support for this?
Change your design. Use two Radio buttons in Rebol/View. Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/