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
T
TQ_
TQ_
T
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
T
theRat
theRat
T
/help $len
Copy Link to Clipboard
Re: length of text in bytes
#
48094
08/09/03
08:53 PM
T
TQ_
TQ_
T
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,534
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,534
Kent, England
$bytes($file(file.txt), b)
Copy Link to Clipboard
Re: length of text in bytes
#
48096
08/09/03
09:14 PM
T
TQ_
TQ_
T
10x
Copy Link to Clipboard
Re: length of text in bytes
#
48097
08/09/03
09:26 PM
Joined:
Dec 2002
Posts: 3,534
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,534
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,125
Q
qwerty
Hoopy frood
qwerty
Hoopy frood
Q
Joined:
Jan 2003
Posts: 2,125
...and since 1 character is 1 byte, $len() (which gives the total number of characters in the string) is EXACTLY what you want.
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
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage