Author Topic: assign to local variable c # the value obtained from BasicLabel  (Read 1167 times)

fermin6032

  • Newbie
  • *
  • Posts: 4
    • View Profile
assign to local variable c # the value obtained from BasicLabel
« on: September 15, 2020, 06:47:35 PM »
I need help .. I am making an application in c # with the help of AdvanceHMI, I am obtaining the value of my OPC with the help of AdvanceHMI assigning it to a BasicLabel label and I want to assign that value to a variable in c #.

I show the code I have.

basicLabel2.PLCAddressValue = "Channel1.Aire.Temperatura";

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: assign to local variable c # the value obtained from BasicLabel
« Reply #1 on: September 15, 2020, 09:17:04 PM »
Then you can try:

var value = basicLabel2.Value;

fermin6032

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: assign to local variable c # the value obtained from BasicLabel
« Reply #2 on: September 28, 2020, 06:05:25 PM »
thank you very much if it worked ... you can already get the value of the tag.

thanks