home *** CD-ROM | disk | FTP | other *** search
- OPT MODULE
- OPT EXPORT
-
- MODULE 'intuition/intuition'
-
- PROC easyreq(textformat,args=NIL,title=NIL,gadformat=NIL)
- DEF num
- IF title=NIL THEN title:='EYP message'
- IF gadformat=NIL THEN gadformat:='Ok'
- num:=EasyRequestArgs(NIL,[SIZEOF easystruct,0,title,textformat,gadformat],NIL,args)
- ENDPROC num
-
- PROC errorreq(textformat,titleformat,args=NIL)
- DEF s,e
- e:='EYP error, '
- s:=String(StrLen(e)+StrLen(titleformat)+2)
- StringF(s,'\s\s',e,titleformat)
- StrAdd(s,'()')
- easyreq(textformat,args,s)
- ENDPROC
-