Results 1 to 40 of 41

Thread: QuoteSplit challenge

Threaded View

  1. #1

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    QuoteSplit challenge

    Make a Split function that skips quotes that contain the delimiter. Any opening quote will prevent delimeter from splitting the string.

    Syntax:
    VB Code:
    1. Public Function QuoteSplit(ByRef Expression As String, Optional ByRef Delimiter As String = " ", _
    2.     Optional ByVal Limit As Long, Optional ByVal Compare As VbCompareMethod = vbBinaryCompare) As String()
    3.  
    4. End Sub

    This is a friendly challenge! This means that you can come up with entirely new suggestions, improve code posted earlier on and give suggestions to other participating in to the challenge.

    Purpose is free: you can aim for shortness, you can aim for speed, you can aim for balancing code length and speed. Do what you like most


    Edit!
    You may drop Limit and Compare if you don't want to do them.

    Also fixed Delimiter code (default = " ").

    Edit #2
    And now fixed the Delimiter spelling in the code.
    Last edited by Merri; Jan 5th, 2007 at 05:45 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width