www.webdeveloper.com
Results 1 to 2 of 2

Thread: get substrings

  1. #1
    Join Date
    Feb 2003
    Posts
    4

    get substrings

    Hi,
    I have a delimited string containing various information. This is passed from a form. I need to extrract the indidual items before I insert them into a database.

    How??

    Thanks

  2. #2
    Join Date
    Jan 2003
    Location
    USA
    Posts
    688
    Assuming the delimiter is the | character:

    strarrayFormat = Split(pstrFormat, "|")

    ' Loop thru items.
    ' Start at 1 since 0 is just the format type.
    For intItemNum = 1 To UBound(strarrayFormat)
    Response.Write strarrayFormat(intItemNum)
    Next
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles