Jump to content

Func Name() and Func _Name()


Recommended Posts

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!

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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.

When the words fail... music speaks.

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