Author Topic: Prefix and Suffix not showing up when added to AnalogValueDisplay  (Read 1383 times)

jsu0234m

  • Newbie
  • *
  • Posts: 16
    • View Profile
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")

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Prefix and Suffix not showing up when added to AnalogValueDisplay
« Reply #1 on: March 30, 2018, 02:42:57 PM »
You need to set the Value property , not the Text property

jsu0234m

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Prefix and Suffix not showing up when added to AnalogValueDisplay
« Reply #2 on: April 05, 2018, 10:38:25 AM »
That was the problem. Thanks for your help.