Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split a String into 2 Variables

What I'm trying to do here is Capture 2 Variables from a Textbox

Here is an example of whats going to be in here.

User:Pass

I want to declare everything before the : as user and everything after the : as pass.

I've Googled, and found a few things, but I couldn't seem to get it working fully.

like image 644
Ron Avatar asked Dec 10 '25 06:12

Ron


1 Answers

Dim words As String() = textbox1.text.Split(":")
Dim user as String =  words(0)
Dim pass as String =  words(1)
like image 80
Kapil Khandelwal Avatar answered Dec 12 '25 11:12

Kapil Khandelwal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!