Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Dyndrilliac on September 29, 2004, 08:27 PM

Title: Question Concerning Split().
Post by: Dyndrilliac on September 29, 2004, 08:27 PM
Ok, say I have a variable for a string called sInput. sInput, looks like this:
Quotewindow "c:\program files\file.txt"

I want to split sInput by the delimiter Space(1), but I only want to split it the first time Space(1) is encountered from left to right. So in the end, I want to have an array with 2 values: "window" and "c:\program files\file.txt"

Can I use Splt() = Split(sInput, Space(1), 1)

To do this?
Title: Re: Question Concerning Split().
Post by: TheMinistered on September 29, 2004, 08:44 PM
Splt() = Split(sInput, Space(1), 2)