LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Xcontrol Data

Hello Guys.

Hope You can help me with this.

I have an aplication that uses Xcontrol to load data from mysql. Basically each xcontrol has a listbox that loads the primary key(code) of the table and a string field that loads a description for that key, so when the user change the value in listbox it show "whatever" in the string box.

I have made some text and i realized that when I add more "codes" and "descripctions", the xcontrol doesnt update the values even if i close the VI.
It only loads new data when the aplication is started for the first time.

I want to know if there´s a way to unload xcontrol when they are not in use in the current VI.

My aplication has a principal menu with a lot of VI's. I can send some code but not all.

Thanks in advance and sorry for my english.
 
0 Kudos
Message 1 of 3
(2,280 Views)

Add a method to the XControl. This allows you to initialize it any time you want. You don't need to unload it.

0 Kudos
Message 2 of 3
(2,256 Views)
Thanks. I have created a Refresh Method and it works just great.
I didnt know about property and methods in xcontrols.

See you.
0 Kudos
Message 3 of 3
(2,236 Views)