L1ghtn1ng Posted February 2, 2005 Share Posted February 2, 2005 How can I make this? (I just write the code in general, not with the real code in autoIT , to make it easier to read ) 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 More sharing options...
MHz Posted February 2, 2005 Share Posted February 2, 2005 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 More sharing options...
L1ghtn1ng Posted February 2, 2005 Author Share Posted February 2, 2005 thx a lot it really help... -=][ Learning to be a master ^.^] [=- Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now