From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-08-2008 01:31 PM
07-08-2008 01:55 PM
Well Hex String Input is my requirement. I tried LabView Champions code that perfectly works to limit string input upto 8 characters.
I tried converting his string input in normal display format to hex display format and then typecast it to string. I also checked the update value while typing. I was guessing now it should work but it doesn't. It allows user to input more than 8 characters and removes extra characters only when user clicks outside the control box.
I tried using flat to string format as well. It still holds the same problem : remove extra characters only after user clicks outside the input control box.
Apart form this, I was also wondering if typed-in hex data could be displayed in the byte-separated format like AA BB CC DD not the defualt one like AABB CCDD.
All suggestions and helps will be greatly appreciated.
07-08-2008 02:07 PM
Well Hex String Input is my requirement. I tried LabView Champions code that perfectly works to limit string input upto 8 characters.
I tried converting his string input in normal display format to hex display format and then typecast it to string.
This make no sense.
I also checked the update value while typing. I was guessing now it should work but it doesn't. It allows user to input more than 8 characters and removes extra characters only when user clicks outside the control box.
If the string is set to "update while typing", this is definitely no longer true.
Still, you cannot prevent the user from entering illegal characters (such as "Z"). That would require more code.
I tried using flat to string format as well. It still holds the same problem : remove extra characters only after user clicks outside the input control box.
Show us some code.
Apart form this, I was also wondering if typed-in hex data could be displayed in the byte-separated format like AA BB CC DD not the defualt one like AABB CCDD.
Anything is possible. You can do a Xontrol that does full validation and formatting. It is probably not worth it. You could also use a U8 array with 4 elements shown and make the container and frames transparent.
All suggestions and helps will be greatly appreciated.
See above.
07-08-2008 03:47 PM
07-08-2008 03:56 PM
Hi,
I think you have no Update While Typing flag in second control. Here is corrected example.
Andrey.
07-08-2008 04:05 PM
07-08-2008 04:09 PM
01-19-2016 09:12 AM
I was also wondering how to limit character length to string control.
After reading this thread and seeing different solutions I came with one in attachment.
If numeric controls have a property where range can be set, why can't we have that with strings?
A warnng to attachment: This control does not work (you can't change value but you can read it) if placed on typedef Tab control. I'm not sure if that is a bug.
Anyway I hope this helps.
Best regards
01-19-2016 01:21 PM
01-19-2016 03:01 PM
@3DVision wrote:
Anyway I hope this helps.
Is there a reason why this property needs to rewritten over and over, as fast as the computer allows?