Blueing

Func Name() and Func _Name()

4 posts in this topic

#1 ·  Posted

Hey,

im doing autoit now for 1 month and came across alot of functions; some predefined functions, and some made by users and often I stumble across functions which are declared like Func _Example() - whats the point from the _? so wheres the differnce between Func Bla() and Func _Bla()?

Im just curious and hope someone can tell me,

thanks!

Share this post


Link to post
Share on other sites



#2 ·  Posted

There is no difference, but we tend to use the underscore prefix to indicate that it is an UDF in stead of an internal function.

Jos

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted

Usually an underscore in front of the function name means it's a user defined function not a native function, but it's just a convention. You can find user defined function without underscore prefix. Anyway it has nothing to do with the functionality, whatever your function is name it runs in the same way.

1 person likes this

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#4 ·  Posted

Thank u guys!

Conventions are must have in programming languages, nice to know now and I will use it like this further on, thanks again :)

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