CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Split function

  1. #1
    Guest

    Split function

    The documentation says the Split function is supposed to return a one dimensional array, but when I try to do this
    Set MyArray = Split szTextString,",",10,vbTextCompare

    I get a compile error saying that the array can't be set like this. HOw do I get the array.

    I'm new at VB, I'm primarily a C++ programmer


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Split function

    dim myarray() as string
    myarray = split( szTextstring, ",")


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

Featured