문제

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")
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top