Convert.ToBoolean in OD 19.4
Posted: Tue Dec 31, 2019 8:15 pm
This code has been working for many years, but is suddenly broken in OD 19.4
So to get it working, I have to rewrite it as
Why?
Code: Select all
string command = "SELECT AddEnhancedMenuItems FROM anesthpreference";
return Convert.ToBoolean(DataCore.GetScalar(command));Code: Select all
string command = "SELECT AddEnhancedMenuItems FROM anesthpreference";
string result = DataCore.GetScalar(command);
bool prefResult = Convert.ToBoolean(Convert.ToInt32(result));
return prefResult;