AnsweredAssumed Answered

How to get values of textboxes from display 1 and save them in display 2

Question asked by Israa on Apr 18, 2019
Latest reply on Apr 24, 2019 by Israa

Hello everyone,


I'm trying to get values of textboxes from display 1 and store them in textboxes in display 2, I was able to store Values of tags from display 1 and assign them to in display 2 (Use variables in display macro from another display's macro)

but it didn't work with textboxes from display 1 to display 2.

 

Any help please?

 

 

Dim D as Display

Set D = Application.Displays("DP1_FTs.PDI")

 

 

A = D.Symbols("TextBox1").GetValue("*", Null)

B = D.Symbols("TextBox2").GetValue("*", Null)

C = D.Symbols("TextBox3").GetValue("*", Null)

 

 

ThisDisplay.TextBox2.Value = A

ThisDisplay.TextBox3.Value = B

ThisDisplay.TextBox4.Value = C

 

 

Thanks,

Israa

Outcomes