bdeExistsModel
Determines if a filepath is open or if a filename exists.
Syntax
boolean = bdeExistsModel(filename, filepath)
Inputs
- filename
- Name of the file. Used to see if file exists.
- filepath
- Type: string
Outputs
- bool
- Returns True when filename is not empty and the entire filepath is open in session. Returns False when filename is not empty and the filepath is not open. Returns True when filename is empty and the filepath exists. Returns False otherwise.
Examples
boolean = bdeExistsModel('', 'C:\TestFolder\doesExist.scm')
boolean = 1
boolean = bdeExistsModel('', 'C:\TestFolder\doesNotExist.scm')
boolean = 0
boolean = bdeExistsModel('Model1', '')
boolean = 1
boolean = bdeExistsModel('Model1234', '')
boolean = 0