adamXpeter
21 days agoNew Contributor
Storages.INI GetOption with null default value does not work
Dear SmartBear,
GetOption with default null value does not work. If I give an empty string as default value it works. Why?
See the screenshot above, GetOption(_opcionev, null) returns null, while using an empty string or "XXX" it returns the correct value, "John", from the INI file.
Haven't tested the other ways with null default value.
Is this a correct operation?
Best regards,
Peter
The DefaultValue parameter used in GetOption method, requires a Variant value as described in https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/basic.html
The keyword, null, is not considered a Variant in JavaScript