Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(strlen(xx)) ????
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #1
(strlen(xx)) ????
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.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-17-2012 04:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: (strlen(xx)) ????
Try <EVAL STRLEN(XX)>, I think it works.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-17-2012 05:18 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #3
RE: (strlen(xx)) ????
That worked! Thx!

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-17-2012 08:53 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #4
RE: (strlen(xx)) ????
this code works for month, skul Smile
I mean this is also documented in the wiki as Extreme wrote?
07-17-2012 04:39 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #5
RE: (strlen(xx)) ????
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!

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-17-2012 08:53 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)