DjProg 3 Posted September 27, 2010 Report Share Posted September 27, 2010 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 : jhskjhsvkjsgvkshgvkshgvskhgsvkshgvskhgvskhgsvkshgvskI 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... Quote Link to post Share on other sites
DjProg 3 Posted September 27, 2010 Author Report Share Posted September 27, 2010 Solved by myself, Here is the solution if you encounter the same problem (the library provided was buggy) : http://ubotstudio.com/forum/index.php?/topic/2205-library-strings/page__st__20 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.