![]() |
STRTRIM seems not to be working - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: STRTRIM seems not to be working (/Thread-STRTRIM-seems-not-to-be-working) |
STRTRIM seems not to be working - kn4tseb - 08-08-2014 03:37 AM using jul31 dev .... im trying to eat the spaces in a text with strtrim but doesnt seem to work... example serv.log <strtrim whats up dude> returned text log: whats up dude RE: STRTRIM seems not to be working - darksun84 - 08-08-2014 03:40 AM This function be used to strip all whitespace (spaces, tabs, newlines) from the start and end of a string. ![]() RE: STRTRIM seems not to be working - Skul - 08-08-2014 03:49 AM same result here on August 4th build, 2014. RE: STRTRIM seems not to be working - kn4tseb - 08-08-2014 04:15 AM good to know its not only me xD RE: STRTRIM seems not to be working - darksun84 - 08-08-2014 04:21 AM Trimming removes the white-spaces just in the beginning and end of the string, not in the middle and so on.. ![]() RE: STRTRIM seems not to be working - kn4tseb - 08-08-2014 04:48 AM omg... so is it possible to remove whitespaces in middle of a string? i guess its necessary some strsub and strlen or streat and strarg >.< RE: STRTRIM seems not to be working - Skul - 08-08-2014 05:49 AM Yes: Code: [function removespaces] RE: STRTRIM seems not to be working - XuN - 08-08-2014 07:09 AM Taken from: http://forum.spherecommunity.net/Thread-Spaces (12-05-2013 09:06 AM)XuN Wrote: StrTrim only works for spaces at begin of given string, if you want to remove any spaces from the text they Input use <asciiremove 32,<argtxt[0]>> RE: STRTRIM seems not to be working - kn4tseb - 08-08-2014 07:15 AM Thank you both! ![]() |