#42002/1/15 17:14:41
FileIO
Open -
set myFile = new(xtra "fileio")
set theFile = displayOpen( myFile )
set myFile = 0 set myFile = new(xtra "fileio")
Save -
set theFile = displaySave( myFile, "Title", "Default File Name")
set myFile = 0
Buddy API
Open -
set theFile = baGetFilename("Open", "C:\", "Filename", "Filters│*.*", Flags, "Instruction", Allow Folder Selection, X-Location, Y-Location )
Save -
set theFile = baGetFilename( "Save", "C:\", "Filename", "Filters│*.*", Flags, "Instruction", Allow Folder Selection, X-Location, Y-Location )
FileXtra
Open -
set theFile = fileOpenDialog(initialDirectory, filterString, dLogTitle, createPrompt, FileMustExist)
--On the Mac, only the initial Directory and filterString are valid
Save-
set theFile = fileSaveAsDialog(initialDirectory, fileName, dialogTitle, overwritePrompt)
--On the Mac, only the initial Directory and fileName, and prompt are valid.
MUI Xtra
Open -
set aMuiObj = new (xtra "MUI")
set fileString = "Open this file"
set theFile = fileOpen(aMuiObj, fileString)
Save -
set aMuiObj = new (Xtra "MUI")
set fileString = "save this file"
set theFile = fileSave( aMuiObj, fileString, "with this prompt" )
编辑历史:[这消息被mzgjingsi编辑过(编辑时间2002-01-15 17:31:27)]