09-07-2010 12:03 PM
I have a string combo box. Is it possible to have the ascii "NUL" (00 in hex) as a selection in the combo box? I need the combo box to select a list of strings, but I also need the NUL option, since I need the hex number x00 sometimes.
string => hex equivalent
NA => x00
string1 =>hex equivalent
string 2 =>hex equivalent
string 3 =>hex equivalent
09-07-2010 12:09 PM
I guess the empty string constant is equal to a NUL string.
09-07-2010 12:10 PM
Use the normall string NULL, in the event (or after the control) you check if the value equals to NULL, and then you output x00.
This can be easily done in a sub-vi.
Ton
09-07-2010 12:12 PM
@COq Rouge wrote:
I guess the empty string constant is equal to a NUL string.
No it's not, an empty string has lenght 0, a string with the value NULL has a length of 1.
However in C, a NULL string is an empty string since they are NULL-terminated.
Ton