Question

I am trying to figure out how to change the stroke color of a text field if the value is changed from what the current value is. For these fields i have values that are automatically pulled from various sources and inputted into an XML form. The values are all numeric as well. I want to write something that will say "if the value changes, print the stroke color in different color" but am not sure how to do so. My feeble attempt so far is below. Not sure what additonal info anyone would need to help but please ask and i will answer if needed.

v = FormSet.GetFieldValue(CurrentForm, "IMPR_ROOMS_TOT_BEDROOMS")
if v != v 
    FormSet.SetObjectPRoperty(CurrentForm, "IMPR_ROOMS_TOT_BEDROOMS", "StrokeColor", "#f11818")
Was it helpful?

Solution

Your comparison will never be true. v will never be not equal to v, so your code to set the property will never fire.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top