home *** CD-ROM | disk | FTP | other *** search
- on doCreateOK
- global fieldSpec
- if the optionDown then
- put TRUE into doAgain
- else
- put FALSE into doAgain
- end if
- if field "FieldEntry" = EMPTY or field "FieldEntry" = "_" then
- beep
- else
- put item 2 of fieldSpec into theType
- put field "FieldEntry" into theField
- put the number of chars of theField into theNum
- delete char theNum of theField
- repeat with i = 1 to the number of lines of 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 doCreateOK
-
- on doCreateCancel
- global fieldSpec
- put EMPTY into fieldSpec
- hideDefineField
- end doCreateCancel
-
- on showSpriteLoc
- repeat with i = 1 to 48
- put i & ":" && the loc of sprite i
- end repeat
- end showSpriteLoc
-