home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 3 / Developers_Source_Vol_03_1996.iso / parad / oct94 / sl_fig05.gif < prev    next >
Graphics Interchange Format  |  1995-09-26  |  10.7 KB  |  641x480  |  4-bit (5 colors)
   ocr: BUBBLEEBoX37C.changeValue* method changevalue(uar eventinfo ValueEvent) var evalDate Date enduar if not isBlank(eventinfo.newwalue() then try - - First try to cast the value as a date. evalDate == date(eventinfo.newvalue()) - The value was successfully cast as a date. Now we want to - - - check if it Falls within our arbitrary date range- if (evalDate < date("01/01/98)) then beepo msgstop("Date Error", I "Date supplied must be greater than 01/01/90!") eventinfo.setErrortode(pebadDate) endif onFail - - We Were not able to successfully cast the value as a Date. - - Set the error code appropriate ...