Const
SourceAdded a keyword ‘const’ to PowerLanguage, which allows you to define the size of an array.
Does someone knows a usage example for this? I thought something like the following, which is not correct:
Code: Select all
Arrays:
myIntArray[const 10](0);
const myIntArray[10](0);
Usage example:
Code: Select all
Print(GetAppInfo(aiMainWindowHandle));
Sidenote
Related to the GetAppInfo() reserved word: why does GetAppInfo(aiApplicationType) returns a zero when called in the Portfolio Backtester? A value of zero means "unknown", but for programming purposes I'd rather see a fixed numeric value (say, 3), since an unknown value can be triggered for more than one reason than the Portfolio Backtester application environment if I'm correct.
Btw, if you have any other undocumented reserved words, add them to this thread. I'd definitely like to know them to become more proficient in EasyLanguage, and other forum users might be interested as well.
Regards,
Josh