03-17-2006 11:28 AM
03-20-2006 11:57 AM
EG,
First off, there is a difference between a parameter string and a local
variable string when entering the data. If you edit the string of a local
variable from the locals tab, you are entering in the exact string. When
you type "\", you are really place "\\" in your
string. When you place the string inside the parameter, you are passing an
expression. For example
"Jesse\tO" would pass Jesse\tO and not Jesse\\tO.
You can tell you are passing an expression because, when
entering information into a parameter string you can enter Locals.myString.
You could not place this expression inside a local variable string and expect
it to retrieve the data from another variable.
Alternatively, when you specify the local variable to use in the parameter
string section you can specify the type as 'Binary String'. This allowed
me to type Jesse\tO in the local variable and have it pass correctly.
Finally, LabVIEW will display the data that it is sent. It does not add
formatting to the data. If you are reading from your Access database, and
you are seeing "\\t" instead of a tab, I would expect Access to be
sending "\\t" to LabVIEW. If you are unable to get Access to
send the proper \ codes, you could always use the search and replace vi in
LabVIEW to format the data properly. I
would also look into how the data is being stored in the database and if the \
codes are correct there.
Regards,
Jesse O.
Applications Engineering
National Instruments