I want to add CheckBox to my Dialog .
I used this code:
Dialog dialog; DialogField dialogField; NoYesId checkValue; ; dialog = new Dialog("New dialog with checkBox"); dialogField = dialog.addFieldValue(identifierStr(NoYes) , checkValue); checkValue= dialogField.value(); dialog.run(); info(strfmt("Value %1" , checkValue));
So, in Debug, I see the value of the variable (checkValue) is always NO.
In the web tutorial, I saw this code:
dialog.addFieldValue(typeid(NoYes), NoYes::Yes, "tip");
But I have an error. The typeid method does not exist.
How? Thanks everyone
enjoy it!
source share