extension.
You notice that in the line above I say "should return FALSE". As it
turned out with my copies of Cakewalk Pro 3 and Cakewalk Pro Audio 6, 7 and 8, I received
a TRUE or 1 return code when the function both failed and worked properly. Take note of
this and other odd behavior with several of the other TRACK menu functions especially when
used in versions 6 and above.(if (== (FileOpen "E:\work\av\midi\intro.wrk") 0) (exit))
failure with a file name argument supplied.
If no argument is supplied and the user is forced to choose a file from the dialog box,
the function returns NIL. The bug for the return codes has been fixed for version 8 so
long as the file name is supplied as an argument. If no name is supplied and the dialog
box is used to select a file, version 8 still returns NIL for success or failure.
WRK file as a
MIDI file in any of the 4 MIDI formats, sometimes the file is written with a zero file
length. The file is, however, intact and loads and plays fine, just has a zero file
length. This can also happen when using the "Save As" feature from the FILE
menu. Another thing versions 7 and 8 do when using this function. If you use a file name
argument but fail to provide an extension to that file name, CAL will not add one on for
you. The resulting file will be saved to disk with no extension. Cakewalk will, however,
load the file back in without protest. You just will not be able to see the file listed in
the OPEN dialog because Cakewalk will not display files names unless they have an
extenuation that Cakewalk recognizes. You will have to key in the file name by memory, but
it will load. Using the "Save As" feature of the FILE menu will add a WRK
extention to a file name if you don't provide one. Another bug was pointed out to me by
Jerry Malcolm, who tells of a flaw in all versions past version 3. If you try to
(FileSaveAs) a file and in the argument provide a .MID extension, the file will be saved
with that extension but will, in fact, still be formatted as a Cakewalk file and not a
standard MIDI file. This has been corrected for version 8.
for the user to
browse for the file. TRUE is returned for a successful load and FALSE is returned in the
event the load fails or the user aborts the action. As of version 7, this feature and the
companion feature below are no longer supported in the Cakewalk drop-down menu. These CAL
functions will still work, but the manual operations have been rendered obsolete through
the availability of drag-and-drop file handling combined with the ability to have open
more than one project at a time..