Jump to content

GUICtrlCreateLabel


Recommended Posts

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 ^.^] [=-

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...