how do i limit the string length in the string control LV 6i

how do i limit the string length in the string control LV 6i

Post by Marc » Fri, 16 Mar 2007 22:10:17


You could just use a timestamp control. By default, this has time and date although it seems you only want the date. This can be achieved by editing the format string. Right click the control and click properties. Go to the Format & Precision tab. At the bottom of this screen click the Advanced Editing Mode radio button.
Change the format string to: %<%x>T
Now only the date will be shown. The control will output a timestamp, so to get a string as I assume you want, you can use Get Date/Time String.
<img src=" http://www.yqcomputer.com/ "> Message Edited by Marc A on 03-15-2007 09:07 AM


Example_BD.png:
http://www.yqcomputer.com/
 
 
 

how do i limit the string length in the string control LV 6i

Post by parthab » Fri, 16 Mar 2007 22:40:10

To update to Derek's explanation, a quick example... :smileywink:
 
Don't forget to Tick the 2 things I've shown in the att pic !


Str_Limit&Update.vi:
http://www.yqcomputer.com/


Str_Limit&Update.PNG:
http://www.yqcomputer.com/

 
 
 

how do i limit the string length in the string control LV 6i

Post by Donal » Wed, 21 Mar 2007 02:40:13


Microsoft's ActiveX MonthView control or Date and Time Picker control both work in LV6.0.
LabView's timestamp control with its built in calendar was introduced in LV7.0.