OpenFile
Description: |
baOpenFile opens a document, using the program that the file is associated with. | ||||||||||||||||||||||||||||||||||||||||||
Platforms: |
Windows and Macintosh | ||||||||||||||||||||||||||||||||||||||||||
Usage: |
Result = baOpenFile( FileName , State ) | ||||||||||||||||||||||||||||||||||||||||||
Arguments: |
String, string. |
||||||||||||||||||||||||||||||||||||||||||
Returns: |
Integer. Returns an error code. If the return is less than 32 then an error occurred. See Notes for details. |
||||||||||||||||||||||||||||||||||||||||||
Examples: |
Director: Authorware: |
||||||||||||||||||||||||||||||||||||||||||
Notes: |
You should always use the full path to the file being opened. Windows will search for the file in limited specific places such as the current directory and the PATH variable, but Macintosh won't. On Windows, possible errors include:
On Macintosh, an error will result in a return of 0. To open a file in a program other than the default one, use baShell.
|
||||||||||||||||||||||||||||||||||||||||||
See also: |