Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
Command Definitions 37
RESULT
None
EXAMPLE
log "This string appears in the Log Events window"
After running the preceding script, this text appears in the Log Events window:
(* This string appears in the Log Events window" *)
NOTES
The Log command works even if logging has not been turned on with the Start
Log command or has been turned off with the Stop Log command. If logging is
turned off before the Log command is sent, it will still be turned off after the
Log command is sent.
ERROR
New File 2
The New File command displays a dialog box like the one in Figure 2-6 to
allow the user to specify a filename and a location. New File does not create a
new file; rather, it returns a reference to a file with the name and location
specified by the user. You can store the reference in a variable and pass it to
Open for Access (which in turn creates the file in the specified location) or to
any other command for which you want to specify a file that doesn’t yet exist.
New File is the only command provided by the New File scripting addition.
Error
number Error message
–1700 Can't make some data into the expected type.