Jump to content
Sign in to follow this  
codejunkie

grouping functs and Variables?

Recommended Posts

codejunkie

Removed

Edited by codejunkie

Share this post


Link to post
Share on other sites
jpm

are you speaking AutoIT3 language as described in the DOC? :)

Share this post


Link to post
Share on other sites
codejunkie

OK I take it the answer to my question is no :)

Share this post


Link to post
Share on other sites
SvenP

OK I take it the answer to my question is no  :(

<{POST_SNAPBACK}>

Hello codejunkie,

I think you want to use OOP style of programming? (Object Oriented)

Well, the beta-beta version of AutoIt does do COM-functions, but not OOP.

It is very difficult to implement. I don't think it will ever be implemented, because existing programming languages like Visual Basic or Java are more suitable for these kind of things.

Regards,

-Sven

Share this post


Link to post
Share on other sites
codejunkie

Hello codejunkie,

I think you want to use OOP style of programming?  (Object Oriented)

Well, the beta-beta version of AutoIt does do COM-functions, but not OOP.

It is very difficult to implement. I don't think it will ever be implemented, because existing programming languages like Visual Basic or Java are more suitable for these kind of things.

Regards,

-Sven

<{POST_SNAPBACK}>

Ok suppose it doesnt make much diffrence anyway just adds few '.' to my code no big deal

Share this post


Link to post
Share on other sites
layer

DataStore.$Variable
That's not even AutoIt code :)

FootbaG

Share this post


Link to post
Share on other sites
sohfeyr

Have you considered using a common prefix to group variables and functions catagorically? In an alphabetic listing of functions (as rendered in SciTE), related functions will appear together.

For a simple example, say you wanted to build a "class" to define default values for message boxes or parameters of MsgBox(). All functions or global variables dealing with managing message boxes could begin with "MsgMgt_".

As in, the function:

MsgMgt_SetMsgBoxLocation($x, $y)

could set global variables:

$MsgMgt_MsgBoxLocation_x

$MsgMgt_MsgBoxLocation_y

True, it makes the code look more complicated, and it isn't nearly as efficient as classes and objects, but it does lend an organizing principle even to commonly named variables like x and y.

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  

×