FinalVersion Posted February 11, 2010 Share 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] Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 11, 2010 Share 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. Link to comment Share on other sites More sharing options...
whim Posted February 11, 2010 Share Posted February 11, 2010 StringRight($string, 1) Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 11, 2010 Share 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. Link to comment Share on other sites More sharing options...
FinalVersion Posted February 12, 2010 Author Share 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] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 12, 2010 Share Posted February 12, 2010 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 Link to comment Share on other sites More sharing options...
FinalVersion Posted February 12, 2010 Author Share Posted February 12, 2010 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] Link to comment Share on other sites More sharing options...
enaiman Posted February 12, 2010 Share 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 :) Link to comment Share on other sites More sharing options...
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