mcallaghan
IS-IT--Management
I have a question on using string I am trying to create a script that will take a name such as John Smith and create a variable that says jsmith.
The code i have just isnt working
mAssigned = "John Smith")
pos=instr(mAssigned," ")
msgbox pos ("Works Fine")
first=left(mAssigned,1)
msgbox first("Works Fine")
last=left(mAssigned,pos+1,3)
msgbox last ("Doesnt work")
If you can help it will be most appreciated.
Thanks
The code i have just isnt working
mAssigned = "John Smith")
pos=instr(mAssigned," ")
msgbox pos ("Works Fine")
first=left(mAssigned,1)
msgbox first("Works Fine")
last=left(mAssigned,pos+1,3)
msgbox last ("Doesnt work")
If you can help it will be most appreciated.
Thanks