home *** CD-ROM | disk | FTP | other *** search
- on revealFortune name, problem, myText
- set FlAG1 to 1
- set flag2 to 1
- repeat while FlAG1 or flag2
- if FlAG1 then
- set FlAG1 to offset("#", myText)
- if FlAG1 then
- put name into char FlAG1 of myText
- end if
- end if
- if flag2 then
- set flag2 to offset("@", myText)
- if flag2 then
- put problem into char flag2 of myText
- end if
- end if
- end repeat
- put myText into field "fortune"
- end
-
- on initText
- set name to the number of cast "Name"
- repeat with i = name to name + 1
- set the text of field i to " "
- set the textSize of field i to 12
- set the textHeight of field i to 14
- set the textFont of field i to "Geneva"
- set the textStyle of field i to "Plain"
- set the foreColor of field i to 5
- set the text of field i to EMPTY
- end repeat
- set i to name + 2
- set the text of field i to " "
- set the textSize of field i to 12
- set the textHeight of field i to 16
- set the textFont of field i to "Geneva"
- set the textStyle of field i to "Plain"
- set the foreColor of field i to 5
- set the text of field i to EMPTY
- end
-