menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Calculating How Many Characters or Texts are in a TextBox
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Calculating How Many Characters or Texts are in a TextBox
SuperiorEternal
Join Date: 2009-08-22
Post Count: 2365
#138108909
Wednesday, June 25, 2014 6:52 AM GMT
Is there an API for it?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
lampwnage121
Join Date: 2012-10-20
Post Count: 4285
#138113491
Wednesday, June 25, 2014 8:29 AM GMT
String = "ASDFSDF?@#$" print (#String)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Thane_1
Join Date: 2009-04-08
Post Count: 3406
#138152291
Wednesday, June 25, 2014 6:56 PM GMT
Yep, just #String
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
SenseiWarrior
Join Date: 2011-04-09
Post Count: 12140
#138152489
Wednesday, June 25, 2014 6:57 PM GMT
string.len(string) >print(string.len("hello")) 5
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
lostend
Join Date: 2011-08-21
Post Count: 8265
#138155053
Wednesday, June 25, 2014 7:15 PM GMT
local string_length=string.len('hi') local string_length=#'hi'
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Thane_1
Join Date: 2009-04-08
Post Count: 3406
#138183309
Wednesday, June 25, 2014 11:05 PM GMT
Guy's, I think we got it, lol
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
KnightmareXD
Join Date: 2009-07-14
Post Count: 11189
#138184212
Wednesday, June 25, 2014 11:13 PM GMT
I would use the # operator over string.len.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right