Sign in to follow this  
Followers 0
L1ghtn1ng

GUICtrlCreateLabel

3 posts in this topic

How can I make this?

(I just write the code in general, not with the real code in autoIT :lmao:, to make it easier to read o:) )

example:

Input your age : $age

I want the output to be like this:

Your age is $age years

so how can I write code? I have tried like this but it's not working :

GUICtrlCreateLabel ("Your age is" $age "years")

and etc..

must I create all of them one by one?

like this?:

GUICtrlCreateLabel("Your age is", 10, 10)

GUICtrlCreateLabel($age,20,10)

GUICtrlCreateLabel("years",24,10)

thx for the help...


-=][ Learning to be a master ^.^] [=-

Share this post


Link to post
Share on other sites



GUICtrlCreateLabel("Your age is " & $age & " years", 20, 100)

This will produce a label displayed as:

Your age is $age years

where $age is replaced with the input, by a previous input function...

"&" symbol displayed concatenates strings and variables.

Share this post


Link to post
Share on other sites

thx a lot it really help... :lmao:


-=][ Learning to be a master ^.^] [=-

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