09-02-2010 05:15 AM
Solved! Go to Solution.
09-02-2010 08:18 AM
Why not use tab as delimeter?
But here is a clue
09-02-2010 09:13 AM
Thank you for your VI but it doesn't help.
:
- Why not to use "tab"-delimeter ?
- the user creates a csv-file with Excel and it is not possible to choose tab-delimeter (there is just one defined delimeter in Excel (MS-2003) for .csv files)
....
I try to explane the problem again:
I need to determine the language of the installed MS-office to know if I have to use the ";" or "," as delimeter if I save a file.
(in the same way, I have to know if I have to use ";" or "," as delimeter, if the data should be read from the file.)
It is not possible to use "tab", because the Excel doesn't use it as delimeter in csv-files.
I hope the problem became clearer.
Cheers
09-02-2010 09:21 AM
In Microsoft Excel you can choose to save the spreadsheet as a tab-delimited text file. Then you can change the extension to csv because csv is just a textfile with a special format.
@alexphysiker wrote:
Thank you for your VI but it doesn't help.
:
- Why not to use "tab"-delimeter ?
- the user creates a csv-file with Excel and it is not possible to choose tab-delimeter (there is just one defined delimeter in Excel (MS-2003) for .csv files)
....
I try to explane the problem again:
I need to determine the language of the installed MS-office to know if I have to use the ";" or "," as delimeter if I save a file.
(in the same way, I have to know if I have to use ";" or "," as delimeter, if the data should be read from the file.)
It is not possible to use "tab", because the Excel doesn't use it as delimeter in csv-files.
I hope the problem became clearer.
Cheers
09-02-2010 09:22 AM
09-02-2010 09:28 AM
@alexphysiker wrote:
It is not possible to use "tab", because the Excel doesn't use it as delimeter in csv-files.
That's only because you're choosing to use .csv. If you choose Text (tab delimited) as the file type then you can use tabs. A .csv file is nothing more than a text file anyway.
As for determining the language, a Google search would have yielded the answer. You can look in the registry for this information. For Office 2003 the key is HKLM\Software\Microsoft\Office\11.0\Common\LanguageResources\SKULanguage. The value of that key will tell you the language. English is 1033. Other languages have other values, which are documented.
09-02-2010 09:30 AM
This setting is dependent on the configuration in "regional settings" in control panel. Both Labview and Excel use this settings. I live in a country that use "," as delimiter, and use XP in the same language.. But after some problems that really pissed me off. I changed to "." as delimiter. And also Excel can read files using tab as delimiter. Tab is default for .txt files. Just Google "File format converters and Excel" and you will see. Do not create problems for your self. The VI I sent you will give you the information you need.
09-02-2010 09:51 AM
@smercurio_fc wrote:
As for determining the language, a Google search would have yielded the answer. You can look in the registry for this information. For Office 2003 the key is HKLM\Software\Microsoft\Office\11.0\Common\LanguageResources\SKULanguage. The value of that key will tell you the language. English is 1033. Other languages have other values, which are documented.
You can not determine which decimal sign the user have from the language used. My computer is one example. However this info is in the [HKEY_CURRENT_USER\Control Panel\International] and the key name is "sDecimal"
09-02-2010 10:07 AM
@COq Rouge wrote:
@smercurio_fc wrote:
As for determining the language, a Google search would have yielded the answer. You can look in the registry for this information. For Office 2003 the key is HKLM\Software\Microsoft\Office\11.0\Common\LanguageResources\SKULanguage. The value of that key will tell you the language. English is 1033. Other languages have other values, which are documented.
You can not determine which decimal sign the user have from the language used. My computer is one example. However this info is in the [HKEY_CURRENT_USER\Control Panel\International] and the key name is "sDecimal"
True, but then the user was asking to determine the language only, which is what the answer is for.
09-02-2010 10:20 AM - edited 09-02-2010 10:21 AM
@Isometric_fc wrote:
True, but then the user was asking to determine the language only, which is what the answer is for.
Well everything is up to the OP now. Let us hope he is busy doing coding