AdvancedHMI Software

General Category => Open Discussion => Topic started by: jsu0234m on March 30, 2018, 02:19:18 PM

Title: Prefix and Suffix not showing up when added to AnalogValueDisplay
Post by: jsu0234m on March 30, 2018, 02:19:18 PM
I have quite a few AnalogValueDisplay and BasicLabel boxes that are populated from vb code instead of PLC tags and i can't get the prefix or suffix values from the properties to update on the screen at runtime. It looks like they are going to work while in design time but as soon as the screen loads the prefix and suffix's are gone and just the data shows up. I don't know enough about visual basic to know what I'm doing wrong. Can someone help me out?

Here's the code behind the label. It works i just can't get the prefix or suffix from the properties page to show up at run time.
AnalogValueDisplay13.Text = row("Sum_Lbl_Weight") / row("Avg_Lbl_Weight")
Title: Re: Prefix and Suffix not showing up when added to AnalogValueDisplay
Post by: Archie on March 30, 2018, 02:42:57 PM
You need to set the Value property , not the Text property
Title: Re: Prefix and Suffix not showing up when added to AnalogValueDisplay
Post by: jsu0234m on April 05, 2018, 10:38:25 AM
That was the problem. Thanks for your help.