FinalVersion Posted February 11, 2010 Posted February 11, 2010 How can I get the last character of a string. Example: C:\Windows I'd end up with "s" in this case. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
somdcomputerguy Posted February 11, 2010 Posted February 11, 2010 Look at StringLen, and StringTrimLeft and StringTrimRight - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
somdcomputerguy Posted February 11, 2010 Posted February 11, 2010 Ya, StringRight is better.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
FinalVersion Posted February 12, 2010 Author Posted February 12, 2010 (edited) $strLen = StringLen($String) $fString = StringTrimLeft("C:\Windows", $strLen -1) This is what I came up with, is there a better, more efficient way? Edited February 12, 2010 by FinalVersion [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
AdmiralAlkex Posted February 12, 2010 Posted February 12, 2010 On 2/12/2010 at 12:00 AM, 'FinalVersion said: This is what I came up with, is there a better, more efficient way?They already told you, StringRight(). .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
FinalVersion Posted February 12, 2010 Author Posted February 12, 2010 On 2/12/2010 at 12:01 AM, 'AdmiralAlkex said: They already told you, StringRight().I was posting mine while he posted that. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
enaiman Posted February 12, 2010 Posted February 12, 2010 ShellExecute(StringReplace(@AutoItExe, ".exe", ".chm")) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now