<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=CSV2FIELDS</id>
	<title>CSV2FIELDS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=CSV2FIELDS"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=CSV2FIELDS&amp;action=history"/>
	<updated>2026-04-28T22:14:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=CSV2FIELDS&amp;diff=1648&amp;oldid=prev</id>
		<title>Conversion script: link fix</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=CSV2FIELDS&amp;diff=1648&amp;oldid=prev"/>
		<updated>2015-02-26T23:48:54Z</updated>

		<summary type="html">&lt;p&gt;link fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;HomePage&amp;gt;&amp;gt;SourceCode&amp;gt;&amp;gt;BasicSource&amp;gt;&amp;gt;[[CSV2FIELDS]]&lt;br /&gt;
&lt;br /&gt;
This subroutine converts a single CSV string into a field-delimited dynamic array.&lt;br /&gt;
&lt;br /&gt;
2009-12-24: Was converting escaped quote marks (i.e. two in a row) when not contained within a quoted field; now fixed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      SUBROUTINE [[CSV2FIELDS]](TEXT, RECORD)&lt;br /&gt;
******&lt;br /&gt;
* [[CSV2FIELDS]]  $Revision: 1.2 $&lt;br /&gt;
* CONVERT COMMA SEPARATED VALUES INTO A PICK RECORD&lt;br /&gt;
* Copyright (C) 2007 Rex Gozar&lt;br /&gt;
*&lt;br /&gt;
* This library is free software; you can redistribute it and/or&lt;br /&gt;
* modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
* License as published by the Free Software Foundation; either&lt;br /&gt;
* version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
*&lt;br /&gt;
* This library is distributed in the hope that it will be useful,&lt;br /&gt;
* but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU&lt;br /&gt;
* Lesser General Public License for more details.&lt;br /&gt;
*&lt;br /&gt;
* You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
* License along with this library; if not, write to the Free Software&lt;br /&gt;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA&lt;br /&gt;
* http://www.gnu.org/licenses/lgpl.html&lt;br /&gt;
*&lt;br /&gt;
* Rex Gozar&lt;br /&gt;
* rkgozar@juno.com&lt;br /&gt;
******&lt;br /&gt;
      EQU COMMA TO &amp;#039;,&amp;#039;&lt;br /&gt;
      EQU DQ TO &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
      BUFFER = TEXT&lt;br /&gt;
      BUFPTR = 0&lt;br /&gt;
      CPTR = 0&lt;br /&gt;
      QUOTESW = @FALSE&lt;br /&gt;
      LOOP&lt;br /&gt;
         CPTR += 1&lt;br /&gt;
         C = BUFFER[CPTR,1]&lt;br /&gt;
      WHILE (C NE &amp;quot;&amp;quot;) DO&lt;br /&gt;
         IF (DQ EQ C) THEN&lt;br /&gt;
            IF (QUOTESW) AND (DQ:DQ EQ BUFFER[CPTR,2]) THEN&lt;br /&gt;
               CPTR += 1&lt;br /&gt;
            END ELSE&lt;br /&gt;
               QUOTESW = NOT(QUOTESW)&lt;br /&gt;
               CONTINUE&lt;br /&gt;
            END&lt;br /&gt;
         END&lt;br /&gt;
         IF (COMMA EQ C) AND NOT(QUOTESW) THEN&lt;br /&gt;
            C = @FM&lt;br /&gt;
         END&lt;br /&gt;
         BUFPTR += 1&lt;br /&gt;
         BUFFER[BUFPTR,1] = C&lt;br /&gt;
      REPEAT&lt;br /&gt;
      RECORD = BUFFER[1,BUFPTR]&lt;br /&gt;
      RETURN&lt;br /&gt;
   END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://www.autopower.com/rgozar/pixel.gif&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
Web page devoted to CSV processing: [[CSV]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Tags]]: excel google docs openoffice calc csv comma-delimited tab-delimited spreadsheet worksheet&lt;/div&gt;</summary>
		<author><name>Conversion script</name></author>
	</entry>
</feed>