Kaspar
2008-08-12 16:10:08 UTC
Hello,
What is the best way to read a CSV (Comma Seperated Value) string with the following constraints
- Do not know how long the string is, but for this discussion we could assume no longer than 500 chars
- Do not know how the max number of commas that will be in the string, but there will be at least 1 comma (for 2 values in the string)
If I was using PERL (the split function) or if the formula nodes could handle strings, then this would be solved. I have tried to use the "scan from string" vi, and keep getting Error 85. This vi also assue that the user knows how many commas are in the CSV string before you try to extract the values from the string. Any ideas on how I can do this?
Regards,
Kaspar
What is the best way to read a CSV (Comma Seperated Value) string with the following constraints
- Do not know how long the string is, but for this discussion we could assume no longer than 500 chars
- Do not know how the max number of commas that will be in the string, but there will be at least 1 comma (for 2 values in the string)
If I was using PERL (the split function) or if the formula nodes could handle strings, then this would be solved. I have tried to use the "scan from string" vi, and keep getting Error 85. This vi also assue that the user knows how many commas are in the CSV string before you try to extract the values from the string. Any ideas on how I can do this?
Regards,
Kaspar