Blueing Posted October 6, 2017 Share Posted October 6, 2017 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 More sharing options...
Developers Jos Posted October 6, 2017 Developers Share Posted October 6, 2017 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 Blueing 1 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 More sharing options...
Andreik Posted October 6, 2017 Share Posted October 6, 2017 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. Blueing 1 Link to comment Share on other sites More sharing options...
Blueing Posted October 6, 2017 Author Share Posted October 6, 2017 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now