mIRC Home    About    Download    Register    News    Help

Print Thread
[SUGGEST]: $len(TEXT,1,32) #241945 04/06/13 05:09 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Hello,

As you saw in the title the request is if the $len can count like the tokens system.

e.g:
/var %test test,test1,test2
//echo IS: $len(%test,1,44)
OUTPUT: IS: 4

- Thanks!

Re: [SUGGEST]: $len(TEXT,1,32) [Re: westor] #241946 04/06/13 05:19 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Unlikely, since it's very simple to do $len($gettok(...))

Re: [SUGGEST]: $len(TEXT,1,32) [Re: westor] #241964 05/06/13 06:58 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I second the response-- use $len($gettok(%test,1,44)). Functions like these are made to be focused and composable in this way.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: [SUGGEST]: $len(TEXT,1,32) [Re: argv0] #241966 05/06/13 08:07 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Yeah ok thanks i knew about $gettok .