LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid special character in string box

Solved!
Go to solution

Hi,

 

is there a way that a special character can be avoided in a string box, like permitting only a-z and 0-9 to enter in a string box

0 Kudos
Message 1 of 11
(5,665 Views)

Key Down? Event + Lexical Class Function = much happiness. 

Message 2 of 11
(5,662 Views)

Hi ,

 

I there any examply I can look at.?

0 Kudos
Message 3 of 11
(5,650 Views)

Hi Ankit,

 

ever tried to search examples with the "Example finder" found in the help menu of LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(5,645 Views)

Hello Ankit,

 

Try this.

 

Special charaters.png

 

This is one of the method.

 

Regards,

Bijay

CLD

Message 5 of 11
(5,605 Views)

Hi Bijay,

 

Thanks for the example, this works but this will only tell me if there are specials characters present, Is there a way in which user cannot enter any special character even on rpessing the key for those special character.

 

Thanks,

 

Ankit

0 Kudos
Message 6 of 11
(5,576 Views)

Hi Ankit,

 

did you read Darin's comment in the 2nd message of this thread? The answer is already given!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(5,574 Views)

Yes,I read that but I am not able to implement that and there is no proper examples for that.

0 Kudos
Message 8 of 11
(5,571 Views)

Hi Ankit,

 

there are examples showing usage of event structure!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 11
(5,569 Views)
Solution
Accepted by topic author AnkitG

Hello All,

 

Darin.K's method is simple. Smiley Happy

 

AnkitG : You need to modify the code.

 

Good Learning for me.

 

Regards,

Bijay

CLD

 

 

 

Message 10 of 11
(5,555 Views)