LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string control input charecter to upcase charecter?

Solved!
Go to solution

Cool find, thank you.  I use key down? in my VI's to disallow alpha characters in phone numbers, etc.   I'll have to check those, too. 

Message 11 of 19
(1,796 Views)

Hi, ZWired1,

 

My friend take your attached VI, and wire the CtlRef in the event case to get its value property, then convert it to uppercase. It works fine but key repeat condition.

I'm still a little confused and do not understand these clearly. I have to study more Smiley Mad

0 Kudos
Message 12 of 19
(1,791 Views)

oops

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 19
(1,770 Views)

I would do it like this.  This event gets fired before the value is displayed in the control. 

 

Edit: added key repeat. 

Capture.PNG

aputman
Message 14 of 19
(1,747 Views)

Hi,

Friends. Thanks for your kindly support!

0 Kudos
Message 15 of 19
(1,705 Views)

@aputman wrote:

I would do it like this.  This event gets fired before the value is displayed in the control. 

 

Edit: added key repeat. 

Capture.PNG


I don't use filters enough in my events.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 16 of 19
(1,685 Views)

Using the accepted solution, the value gets written to the control twice, once as a lower case and once as an uppercase.   You can actually see it (barely) if you do a key repeat.  This may not be a problem if the VI is small and using very little of the CPU but may become more noticeable during high CPU usage. 

aputman
0 Kudos
Message 17 of 19
(1,670 Views)

so what is your alternative?

0 Kudos
Message 18 of 19
(1,656 Views)

it's posted above....using filter events.

aputman
0 Kudos
Message 19 of 19
(1,652 Views)