Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

put intValue in a TextBox?

Asked by 3 years ago

How do i set a TextBox's Text to an IntValue?

I've been trying for days but it doesn't work. Please may I have the script?

2 answers

Log in to vote
0
Answered by
moo1210 587 Moderation Voter
3 years ago
Edited 3 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Use tostring(theintvalue), it will convert another value to a string

0
to path to the intValue or the intValue's name? BizzareBazaar 22 — 3y
0
that isn't needed to set a textbox's text to an IntValue. a simple TextBox.Text = IntValue.Value would suffice kkfilms_1 68 — 3y
0
@bizzarebazarr what ever its defined to. @kkfilms_1 Not true, if the typeof is a number and not a string it will not let you combind them as they aren't both strings moo1210 587 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

You'd use the tonumber() function of Lua. It converts a string (TextBox's text) into a number or int (IntValue value)

IntVale.Value = tonumber(TextBox.Text)

Answer this question