Hi,
In my VFP form, I have a combobox control which display list of products. Some products can only be selected depending on the answer to previous question.
Is there a way to control what user can select in a combobox?
I can track the new value selected in Interactivechange method, but not sure how to cancel the selection. I have tried following without success.
Any help on this greatly appreciated.
Combobox InteractiveChange:
if Left(thisform.txtName.value,2)="HZ" or ;
Left(thisform.txtName.value,2)="HX"
cancel =.t.
Endif
In my VFP form, I have a combobox control which display list of products. Some products can only be selected depending on the answer to previous question.
Is there a way to control what user can select in a combobox?
I can track the new value selected in Interactivechange method, but not sure how to cancel the selection. I have tried following without success.
Any help on this greatly appreciated.
Combobox InteractiveChange:
if Left(thisform.txtName.value,2)="HZ" or ;
Left(thisform.txtName.value,2)="HX"
cancel =.t.
Endif