Jump to content
UBot Underground

[library] Strings : REAL problem with length


Recommended Posts

Hello all,

 

First I got a "little" crazy when I saw that the most basic string functions were not natively supported, but that's another issue.

 

So I used the Strings library posted here above. However it simply doesn't work as expected.

 

The library with my test script is attached. ulib-strings-doesnt-want-to-work.ubot

 

If I enter something like this : jhskjhsvkjsgvkshgvkshgvskhgsvkshgvskhgvskhgsvkshgvsk

I got this as a return value : "jhskjhsvkjsgvkshgvkshgvskhgsvkshgvskhgvskhgsvkshgvsk".substr(0,10)

 

Which is absolutely NOT what I want (I want to truncate the 10 first characters so jhskjhsvkj)

 

Please someone help me i'm getting nuts !

 

Cheers,

 

PS : I tried to put the parameters in variables before running the sub but it didn't change anything...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...