• Welcome to Valhalla Legends Archive.
 

Question Concerning Split().

Started by Dyndrilliac, September 29, 2004, 08:27 PM

Previous topic - Next topic

Dyndrilliac

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?
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

TheMinistered

Splt() = Split(sInput, Space(1), 2)