Re: Parsevar question
"Marianne" <[email protected]>
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
Hi Fer Thanks, I will have a look at message 3950. If I use the output of the Open Source Timetable program directly I do not have a problem. I load the file into a listview and then use Parsevar to convert to a GDB file with columns. No probem because as I said the output is in the "correct" format with quotes. If however I make a change to the Open Source output file in Excel(2007) for some or other reason and save with Excel as csv, Excel removes the quotes when saving and the Parsevar does not work. With earlier versions of Excel I did not have any problems. This is why I said it is an Excel issue. Thank you for the assistance. Groete. Frans --- In [email protected], "Fer" <fmstoopman@...> wrote: > > > > Hi Frans, > > > Take a look at message 3950. > It contains a csv-to-gdb converter and does basicly: > remove slashes (/) from the header and replace by dashes (-) > (GDB headers cannot contain slashes) > Change all separator characters into tabs > remove all double quotes > write the result into a GDB file > No problems with empty fields > > vriendelijke groeten > > fer > > > --- In [email protected], "Marianne" <marianne976@> wrote: > > > > > > Thank you all all for the quick replies and the demo program. > > > > I am using an Open Source program for setting a timetable. The result is then exported as csv. If I "Parsevar" directly from the Open Source program I do not have a problem because this program exports all fields with quotes. > > > > If the file is manipulted in Excel and one uses the Save as csv option the delimited file is saved without quotes. This was the original problem. If it is not necessary to manipulate no problem. So Excel is the "problem" here. > > > > I think I will be able to solve the problem with all the ideas and suggestions from the group. > > > > Once again thanks. > > > > Frans. > > > > --- In [email protected], "chris.kevany" <chris.kevany@> wrote: > > > > > > > > > > > > Uloaded "csv_parser_demo.zip" to the files/gui section. > > > > > > Uses a listview like Dimitris suggested to parse a CSV string. > > > I takes into account records containing commas and double-quotes > > > and characters like $ [ ] etc. > > > > > > Just a example that still may need some polishing. > > > > > > Chris > > > > > > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gui4cli/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/gui4cli/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/