Skip to main content

Hi,

 

Is there any way to compare two view control's values (strings) of the same or different view.

For example; I want to do the following

 

View->txtTextControl = "Test"

View->txtAnotherTextControl = "Test1"

 

I want to compare the above two and if the both are same, I want to hide one control.

If they are different, I would like to proceed with displaying the both controls on the form.

 

Thanks in advance for any responses.

R.

Hi Rao

 

If the two controls are on the same view, you can set it up by specifying conditional styling on the control you may want to hide (in the properties grid on the view designer, with the control selected).  This allows you to set the condition for which the control will be visible. or not

 

Alternately, you can also set up a rule, either on view or form level, depending on your scenario.  A simple example would be to set up a rule on either one or both of the influencing control's change events to have a condition that checks whether the two values are equal and then have an action to hide the control if the condition is valid.

 

Hope this helps.

Kind regards

 

 


Thnx; am going to try now...


Reply