I can now get going with some confidence.
I would not have predicted that reading a value from an ini file would have been implemented as an async function ... nothing wrong with that of course, but in many cases one wouldn't want a program starting too much until the ini file had been validated.PetrCBR wrote: Your example does not work because you didn't returned value from getStringValue. app.getIniFile is asynchronous operation so you want to return value using runJSCode_callback (since MM5 2090).Code: Select all
SDB.runJSCode("(function() { app.getIniFile().then(function(iniFileAccess) { runJSCode_callback(iniFileAccess.getStringValue('System','DBName')) }); }); ()", True)
Is there any way to predict, from the documentation, which calls have been implemented as async?