LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I limit number of chars in a dialog string?

Hello,

I need to display a dialog window, where the user can type a string.
Now I want that the string length is less than 10 characters.
Can I limit the number of chars in the string (so that the user can't insert the 11th
character)?

Thanks in advance


Using LV 7.0 on Win XP
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 12
(3,784 Views)
Hi vix,

You could catch the value change event for the string and limit the length to ten.

See attached.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 12
(3,771 Views)


@SandmanUK wrote:
See attached.




Could you save this vi in LV 7.0 format, please?

Thanks
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 12
(3,764 Views)
I personally like using the filters in this case... makes the display more stable.
0 Kudos
Message 4 of 12
(3,765 Views)


@chaos wrote:
I personally like using the filters in this case... makes the display more stable.




Could you save attached vi in LV 7.0 format, please?

Thanks
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 12
(3,760 Views)
Hi vix,

I am attaching a vi that will help you out in restricting the number of characters to 10. But the thing is the string will take all the inputs as long as you keep typing in it. But the final output will be only 10 characters.

Regards
Sreedhar T
Regards,
Sreedhar T
0 Kudos
Message 6 of 12
(3,760 Views)
Hrmph, I would have sworn I did that... here you go
Message 7 of 12
(3,756 Views)


@SreedharT wrote:
Hi vix,

I am attaching a vi that will help you out



I'm sorry, but I have to ask you the same:
could you please change the vi in LV 7.0 format?

Thanks
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 8 of 12
(3,753 Views)


@chaos wrote:
Hrmph, I would have sworn I did that... here you go



Thank you very much.
Very helpful
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 9 of 12
(3,750 Views)
Hi vix,

verion 7.0 attached.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 10 of 12
(3,744 Views)