SphereCommunity

Full Version: (strlen(xx)) ????
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OK, seeing as I've updated to the latest sphere (June 29th, 2012, Nightly). There hasn't been any updates (for whichever reasons that may be).

I've noticed sphere is lacking (strlen(xx)).

(strlen(xx)) never works, it WAS a valid function back on 56b 2009. Now it never gives a result, reglardless of how, when, and where it is used. My suggestion; give it a proper format like <strlen <text>> to return the string length as a number. This is a valuable function for <stripos>,<strsub> and generally clipping textt that would return too long (such as in FILE.WRITELINE creating a server crash when writing more than 4096 characters on a line, messages/sysmessages crashing clients if the message is too long, probably other issues with clilocs (although I disable mine) and other reasons being).

2.
Try <EVAL STRLEN(XX)>, I think it works.
That worked! Thx!
this code works for month, skul Smile
I mean this is also documented in the wiki as Extreme wrote?
I always used (strlen(xx)) and it stopped working in the latest build, I just switched it all over to <eval strlen(xx)> and now it works, thx!
Reference URL's