on 04-24-2007 1:42 PM
Hello,
I got a checkbox, when this gets checked another field should become mandatory, when unchecked the field should be normal.
So i use this code in the onBoundAttributeChanged of the checkbox:
If ctrlctrlChkDel.value <> "" Then
ctrlctrlContact.editmode = cemmandatory
else
ctrlctrlContact.editmode = cemnormal
End If
But something is not right yet, when i check the checkbox the field gets mandatory so this is ok, but when i uncheck it again the field stays mandatory.
Can anyone tell me what im doin wrong?
Thx!
Maarten
Hi Maarten,
Try this:
If ctrlctrlChkDel.value <b>= True</b> Then
ctrlctrlContact.editmode = cemmandatory
else
ctrlctrlContact.editmode = cemnormal
End If
This control hold the <b>True</b> or <b>False</b> value.
You can see this from the Immediate window.
In the debug mode, go to View->Immediate Window.
In that window type this, and then hit Enter:
?ctrlctrlChkDel.value
It should return the value for this control.
Regards,
Vadim.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.