LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between String Constant and Empty String Constant

What is the difference between string constant which does not contain any value and the Empty string constant?

While testing a VI which contain a normal string constant in VI analyzer, it gives error to change string constant with the empty string constant?

 

Please Reply

 

prabhakant

Regards
Prabhakant Patil
0 Kudos
Message 1 of 2
(3,086 Views)

Readability.

 

Functionally, they are the same. From a coding standpoint, the Empty String Constant is unambiguous.

 

It is empty and will always be; good for initialization. Also, because you can not type a value into and Empty String Constant, someone would need to conciously replace it to set a 'default' value that is something other than NULL.

 

 

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 2 of 2
(3,078 Views)