Sign in to follow this  
Followers 0
xG00BERx

Input to Label

3 posts in this topic

I was kind of curious as to how I could take an Input box text and use it to change the text of a Label....

I know how to use InputBox and Label in the GUI I just am kind of confused as to how to do this so thanks for your help.

Share this post


Link to post
Share on other sites



Save the input text into a variable and use GUICtrlSetData on the Label.

Local $data
$data = GUICtrlRead($inputhandle)

GUICtrlSetData($labelhandle, $data)

Share this post


Link to post
Share on other sites

Or do it in a single line:

GUICtrlSetData($sLabel, GUICtrlRead($sInput))

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0