Scripts Thread, extract first letter from a string -vbs in Coding and Web Development; I'm sure it's a no-brainer for most of you.
I have this line. and instead of getting firstname.sirname I need ...
10th December 2009, 04:54 PM #1
extract first letter from a string -vbs
I'm sure it's a no-brainer for most of you.
I have this line. and instead of getting firstname.sirname I need firstinitial.sirname.
ie - extract the first letter from "givenName"
objUser.put "physicalDeliveryOfficeName", objUser.Get("givenName") & "." & objUser.Get("sn")
10th December 2009, 04:56 PM #2
Originally Posted by CyberNerd
objUser.put "physicalDeliveryOfficeName", Left(objUser.Get("givenName"),1) & "." & objUser.Get("sn")
Thanks to mac_shinobi from:
CyberNerd (10th December 2009)
10th December 2009, 04:57 PM #3
thats the ticket
10th December 2009, 05:29 PM #4
no worries fella - just string manipulation functions ie left, right, midstr, strrev, instrrev, etc not sure if vbscript supports all of them but a quick google should fix that
By garethedmondson in forum Windows
Last Post: 10th September 2009, 12:15 AM
By maf_001 in forum Scripts
Last Post: 28th August 2009, 02:12 PM
Last Post: 9th January 2009, 07:17 PM
By projector1 in forum How do you do....it?
Last Post: 14th February 2007, 02:41 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread