Using split in ASP

Results 1 to 2 of 2

Thread: Using split in ASP

  1. #1
    Join Date
    Dec 1969

    Default Using split in ASP

    &nbsp;<BR>I&#039;m no good in arrays.. help me out !<BR><BR>Dim AN<BR>Dim RN<BR>Dim GrpArray<BR><BR>strUniqueID = Request.form("field_name") <BR>GrpArray= Split(strUniqueID,"-",-1,1)<BR><BR>AN =GrpArray[0] &#039; Is this wrong ?<BR>RN =GrpArray[1] <BR><BR>The above grouping does not work? <BR>How do I access the "GrpArray" values.

  2. #2
    Join Date
    Dec 1969

    Default Close

    Arrays use parens in VBScript.<BR><BR>AN = GrpArray(0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts