LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net calendar

Hi,

 

I'm trying to realize a part of my application, and I found unexpected trouble: I want the operator to be able to select from a database the data he wants to analyze. He has to select two dates, beginning and end of the period. I want to give use the .NET calendar for this, making it appear and disappear when one Key is pressed, obviously taking in memory of the date selected.

 

Any suggestion?

0 Kudos
Message 1 of 7
(3,217 Views)
What are you having problems with? Have you taken a look at the shipping examples? There's one that uses the .NET calendar control.
0 Kudos
Message 2 of 7
(3,202 Views)

if you want it to be a key pressed you want to use a event structure also here is an example of making the .net calender disapear and reapear

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 7
(3,199 Views)
You should actually use the container's Visible property rather than the calendar's Visible property since setting the latter to False still leaves the label visible.
0 Kudos
Message 4 of 7
(3,177 Views)

Hi guys,

 

the "visible problem" was already solved using the event structure.

My problem is: how to save the date selected by the user inside a local variable?

 

I've tried with the property nodes, like in the example you mentioned, but with no result. I need to save in a variable the date selected by the user in order to use it in the rest of the program.

 

tks.

0 Kudos
Message 5 of 7
(3,166 Views)
You do not need to save it in a variable. In LabVIEW the wire is the variable. You only need local variables in very specific conditions, and even then you have to be careful to not cause race conditions. I don't understand what you mean by "no result". If you don't know how to save it to a local variable, then what kind of result were you expecting? What did you actually code? Please upload your code so it can be easier to discern what you're doing. Be sure to include subVIs if required.
0 Kudos
Message 6 of 7
(3,152 Views)

Ok, I've solved my problem.

 

I've made tha calendars appear and disappear at the click of a button, waiting for another button to be pressed for exit the waiting loop. Thanks for your suggestion guys!

 

@mercurio: I know variables use should be avoided. I'm trying to use the fewest possible in my application, and if sometimes I need to (maybe due to my lack of experience) I try to check the possibility of race conditions. Thanks for the advice.

Message Edited by Stefano Moret on 08-16-2009 12:45 PM
0 Kudos
Message 7 of 7
(3,140 Views)