how to replace text in vbscript -
I am trying to use VBScript to replace the input, for example entering the user name lastname Firstname format, but once he enters I want to print it like Hello: First Name Last Name
This is what I have done so far
strInput = InputBox ("name, last name, enter first name format") WScript.Echo "Hello:" & amp; strinput
Since there will be a comma between the last name and the first name, you can Use the split function to separate the names in an array.
a = split (strInput, ",") Now, A (0) is the first element (their last Name) and a (1) second element (their first name). MsgBox "Hello" & amp; A (1) & amp; "" & Amp; One (0)
Comments
Post a Comment