Sign in to follow this  
Followers 0
michaelslamet

[newbie] breaking 1 line command into multiple lines

3 posts in this topic

I create a combo box:

$var = GuiCtrlCreatecombo("Option 5", 150, 155, 150, 100)

GUICtrlSetData(-1, "Option 1|Option 2|Option 3|Option 4","Option 3")

The problem is there are hundreds of option available so i try to break the command into multiple lines. Try these but non of them works :)

GUICtrlSetData(-1, "Option 1|Option 2|Option 3" _

"|Option 4","Option 3")

or

GUICtrlSetData(-1, "Option 1|Option 2|Option 3 _

|Option 4","Option 3")

Googling and found nothing except that we can use "_" to break the command into multiple lines (which is not working in this case)

Help :)( Please advice.

Many thanks in advance :(

Share this post


Link to post
Share on other sites



GUICtrlSetData(-1, "Option 1|Option 2|Option 3|" & _
"Option 4","Option 3")


GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.

Share this post


Link to post
Share on other sites

Yoriz: many thanks, it works now!! :(

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