|
|
|
|
|
- Example: Opening a selected file
- Example: Opening a selected sound file
- Handling a multi-file picker
Example: Opening a selected file
FileNameAndPath is string
FileID is int
FileNameAndPath = fSelect("C:\MyDirectories", "File.txt", ...
"Select a file", "Text file (*.TXT)" + TAB + ...
"*.txt" + CR + "All files (*.*)" + TAB + "*.*", "TXT", fselOpen + fselExist)
FileID = fOpen(FileNameAndPath, foReadWrite)
IF FileID = 1 THEN
Error(ErrorInfo(errMessage))
ELSE
...
END
Example: Opening a selected sound file
GLOBAL
FileNameAndPath is string
EventNum is int
EventNum = Event("PlaySound", WinInput(), 1624)
FileNameAndPath = fSelect("C:\MyDirectories", "", "Select a sound file", ...
"Wave sound (*.WAV)" + TAB + "*.wav", "", fselOpen + fselExist + fselChange)
EndEvent(EventNum)
...
PROCEDURE PlaySound(wMessage, wParam, lParam)
FileName is fixed string of 261
FileName = StringRetrieve(lParam, srUnicodeAddress)
Sound(FileName)
Handling a multi-file picker
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|