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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -