3 Replies Latest reply on Feb 11, 2008 11:06 AM by Newsgroup_User

    Separating Strings

    eric-one
      I have a form field that has 4 characters when submitted. I need to be able to separate these characters and store them in unique variables for later use. Any thoughts?

      --- Mid function worked Thanks--
      <cfset myVar1= '#Mid(form.field, 1, 1)#'>
      <cfset myVar2= '#Mid(form.field, 2, 1)#'>
      <cfset myVar3= '#Mid(form.field, 3, 1)#'>
      <cfset myVar4= '#Mid(form.field, 4, 1)#'>