SphereCommunity
(strlen(xx)) ???? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: General Discussion (/Forum-General-Discussion)
+--- Forum: UO/Sphere Discussion (/Forum-UO-Sphere-Discussion)
+--- Thread: (strlen(xx)) ???? (/Thread-strlen-xx)



(strlen(xx)) ???? - Skul - 07-17-2012 04:46 AM

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.


RE: (strlen(xx)) ???? - Extreme - 07-17-2012 05:18 AM

Try <EVAL STRLEN(XX)>, I think it works.


RE: (strlen(xx)) ???? - Skul - 07-17-2012 08:53 AM

That worked! Thx!


RE: (strlen(xx)) ???? - admin phoenix - 07-17-2012 04:39 PM

this code works for month, skul Smile
I mean this is also documented in the wiki as Extreme wrote?


RE: (strlen(xx)) ???? - Skul - 07-17-2012 08:53 PM

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!