Jump to content

Coding Structure?


jgus
 Share

Recommended Posts

I am creating a little application that will have multiple tabs, each of which will have multiple buttons on them plus there will be a few buttons that will be visiable no matter which tab you are on like HELP and CLOSE. I have never been taught any coding best practices so as this little project gets larger I am really starting to see the need for good coding structure. Here are my questions.

1. Anyone know of a good free reference for basic coding structure best practices?

2. With the GUI I mentioned above having multiple tabs and buttons, would it be best to still just have one of the following loop command areas that will be waiting for any of the button presses in the whole application? Or would it make more sense to create seperate loops like this for each tab?

While 1

$msg = GUIGetMsg()

3. When is it best to create functions to seperate out ares of code?

Thanks in advance for anyone's help.

Link to comment
Share on other sites

good questions

my first prgram was with tabs and mutiple buttons and close buttons ... just like you have described

I used 1 loop with over 2000 lines of code

For a great reference that includes good coding "FORMAT"

http://www.autoitscript.com/forum/index.php?showtopic=21048#

my first scipt with multiple tabs and buttons

http://www.autoitscript.com/forum/index.ph...&st=0&p=78760

8)

Edited by Valuater

NEWHeader1.png

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...