Database.openResults


openResults(filename, [analysis], [useActualFile], [iArch], [reportError])

Open results file on top of current model

filenamestringResults filename
analysisoptional string Name of analysis to connect results to (if not given, this is assumed from the filename)
useActualFileoptional boolean Only appropriate for the first mys file loaded on top of a model, for subsequent files the flag is ignored. The default is FALSE, which is the right value for most circumstances. If FALSE, LUSAS Modeller will make a temporary copy of the results file, and interact with that. This ensures that the copy on disk is never modified, and therefore can not be corrupted. If TRUE, the actual file will be used which has an efficiency benefit. However, Modeller can only use the actual file if it is the first file openned, and if the file has the same version number as this copy of modeller.
iArchoptional integer The default 0 means 'auto-detect'. 32 means '32 bit file'. 64 means '64 bit file'. No other values are currently supported
reportErroroptional boolean Default true. Report an error if the file does not exist or cannot be loaded. Can be set to false if you just want to try to load every possible file, and don't care which ones are not valid
Return valuenone 

Back to Database

Back to Overview