annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Access front panel objects from another VI

I have 2 forms and want to set values on form2 from form1.  In text world, I would do something like:
 
  form2.txtBox.text = "Hello world"
 
Is there a way in LV where I can access 1 or more controls on form2 from form1 without passing control references?  I found the "Controls[]" array, but it looks like I have to search that array to find the control I am interested in before using it.  Is there a more direct way?
-cb
 
0 Compliments
Message 1 sur 5
3 182 Visites
I guess you could always do it via globals.
0 Compliments
Message 2 sur 5
3 168 Visites
If you don't want use a control reference, then you can use the Set Control Value [Variant] method.
 
btw, LabVIEW does not have forms. LabVIEW has front panels and diagrams. VB has forms.
 

Message Edited by Dennis Knutson on 10-24-2007 02:04 PM

Message 3 sur 5
3 169 Visites
Thank you.  This is exactly what I was looking for.
-cb
0 Compliments
Message 4 sur 5
3 153 Visites
Nice one Dennis!
0 Compliments
Message 5 sur 5
3 148 Visites