Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
length of text in bytes
Forums
Active Threads
Search
Who's Online
Help
Print Thread
length of text in bytes
#
48092
08/09/03
08:02 PM
Joined:
Sep 2003
Posts: 3
T
TQ_
OP
Self-satisified door
OP
TQ_
Self-satisified door
T
Joined:
Sep 2003
Posts: 3
i need to get the lengh of text/var in bytes but i did not found anything suitable in the help. i tried writing the text in a file and then gettng $bytes(file,b) but it wouldn`t work. any suggestions
Copy Link to Clipboard
Re: length of text in bytes
#
48093
08/09/03
08:42 PM
Joined:
Dec 2002
Posts: 774
T
theRat
Hoopy frood
theRat
Hoopy frood
T
Joined:
Dec 2002
Posts: 774
/help $len
Code:
//if ( khaled isgod ) echo yes | else echo no
Copy Link to Clipboard
Re: length of text in bytes
#
48094
08/09/03
08:53 PM
Joined:
Sep 2003
Posts: 3
T
TQ_
OP
Self-satisified door
OP
TQ_
Self-satisified door
T
Joined:
Sep 2003
Posts: 3
said I needed length in BYTES
Copy Link to Clipboard
Re: length of text in bytes
#
48095
08/09/03
09:00 PM
Joined:
Dec 2002
Posts: 3,547
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,547
Kent, England
$bytes($file(file.txt), b)
Copy Link to Clipboard
Re: length of text in bytes
#
48096
08/09/03
09:14 PM
Joined:
Sep 2003
Posts: 3
T
TQ_
OP
Self-satisified door
OP
TQ_
Self-satisified door
T
Joined:
Sep 2003
Posts: 3
10x
Copy Link to Clipboard
Re: length of text in bytes
#
48097
08/09/03
09:26 PM
Joined:
Dec 2002
Posts: 3,547
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,547
Kent, England
I'm sorry. 10x?
Copy Link to Clipboard
Re: length of text in bytes
#
48098
08/09/03
11:11 PM
Joined:
Jan 2003
Posts: 2,523
Q
qwerty
Hoopy frood
qwerty
Hoopy frood
Q
Joined:
Jan 2003
Posts: 2,523
...and since 1 character is 1 byte, $len() (which gives the total number of characters in the string) is EXACTLY what you want.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage