Valhalla Legends Forums Archive | Visual Basic Programming | Question Concerning Split().

AuthorMessageTime
Dyndrilliac
Ok, say I have a variable for a string called sInput. sInput, looks like this:[quote]window "c:\program files\file.txt"[/quote]

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 [code]Splt() = Split(sInput, Space(1), 1)[/code]

To do this?
September 30, 2004, 1:27 AM
TheMinistered
Splt() = Split(sInput, Space(1), 2)
September 30, 2004, 1:44 AM

Search