home *** CD-ROM | disk | FTP | other *** search
- on doCreateOK
- global fieldSpec
- if the optionDown then
- set doAgain to 1
- else
- set doAgain to 0
- end if
- if (field "FieldEntry" = EMPTY) or (field "FieldEntry" = "_") then
- beep()
- else
- set theType to item 2 of fieldSpec
- set theField to field "FieldEntry"
- set theNum to the number of chars in theField
- delete char theNum of theField
- repeat with i = 1 to the number of lines in field "masterNameList"
- if line i of field "MasterNameList" = theField then
- beep()
- exit
- end if
- end repeat
- put theField into item 1 of fieldSpec
- hideDefineField()
- putFieldInfo()
- if doAgain then
- put EMPTY into item 1 of fieldSpec
- case theType of
- "C":
- set panel to "text"
- "N":
- set panel to "numeric"
- "D":
- set panel to "date"
- "L":
- set panel to "boolean"
- "M":
- set panel to "memo"
- end case
- showDefineField(panel)
- end if
- end if
- end
-
- on doCreateCancel
- global fieldSpec
- set fieldSpec to EMPTY
- hideDefineField()
- end
-
- on showSpriteLoc
- repeat with i = 1 to 48
- put i & ":" && the loc of sprite i
- end repeat
- end
-