Database.getDBFilenameNoExtension


getDBFilenameNoExtension()

Returns Model filename without extension, e.g. if model is saved as "C:\temp\myModel.mdl", this function returns "C:\temp\myModel" Callers may safely add file extensions such as ".mrs" that are not related to any particular analysis. For files associated with analyses (e.g. dat files and mys files), see getFilenameNoExtension. In almost all circumstances it is better to use the standard tokens "%ModelLocn%" and "%ModelName%" in place of calling this function. E.g. use savePicture("%ModelLocn%\%ModelName%.bmp") All of modeller's file handling functions expect and expand tokens of this form automatically

Argumentsnone 
Return valuestringModel name (without extension)

See also getDBFilename, getDBBasename

Back to Database

Back to Overview