Setting a Checkbox value depending on database values
Posted: Thu Jun 29, 2017 1:45 pm
Hello,
I am trying to set a checkbox value depending on the value of a field returned from the database. I am using the following code in the
BeforePrint Event:
CheckBox5_8_Nein.Checked = IIF(LINK_Audit_umfasst_Prüfpunkt.Point_to_check.ja__nein_Frage != "yes",true,false);
but I am getting errors. I have tried other ways of doing it with STIExpression (as an object) and trying to convert that to boolean
but I am getting nowhere. There is only 1 forum entry for how to set a checkbox value in code but that actually doesn't provide a solution
either.
Can anyone please show me how to simply set the checkbox value above?
I am trying to set a checkbox value depending on the value of a field returned from the database. I am using the following code in the
BeforePrint Event:
CheckBox5_8_Nein.Checked = IIF(LINK_Audit_umfasst_Prüfpunkt.Point_to_check.ja__nein_Frage != "yes",true,false);
but I am getting errors. I have tried other ways of doing it with STIExpression (as an object) and trying to convert that to boolean
but I am getting nowhere. There is only 1 forum entry for how to set a checkbox value in code but that actually doesn't provide a solution
either.
Can anyone please show me how to simply set the checkbox value above?