consecutive delimiters (in this case commas) are treated as one by Cold Fusion
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 12:06 PM To: inFusion Support List Subject: [iMS] Bulk Insert Question I've developed a bulk insert app in ColdFusion to allow a list manger to insert multiple new subscribers via a web form. The part in question is: <cfset crlf = chr(13)&chr(10)> <cfif ListLen(Form.BulkAdds,crlf)><!--- 4 ---> <cfloop list="#Form.BulkAdds#" index="IJK" delimiters="#CRLF#"><!--- A ---> <cfset email = trim(gettoken(ijk,1,','))> <cfset firstname = trim(gettoken(ijk,2,','))> <cfset lastname = trim(gettoken(ijk,3,','))> In general, new subscriber records are of the form: email address,first name,last name Subscriber records like: [EMAIL PROTECTED],jesse,james [EMAIL PROTECTED],frank work fine. But a record like: [EMAIL PROTECTED],,james inserts "james" as the first name not the last name. Is this expected behavior? best, paul ==^======================================================= This list server is Powered by iMS "The Swiss Army Knife of Mail Servers" -------------------------------------- To leave this list please complete the form at http://www.coolfusion.com/iMSSupport.cfm Need an iMS Developer license? Sign up for a free license here: http://www.coolfusion.com/iMSDevelopers.cfm List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/ Note: You are subscribed as [email protected] ==^=======================================================
