Sign in to follow this  
Followers 0
Alandor

What UDF means ??

10 posts in this topic

I read all over the forum UDF a lot of times, but I don't know what It means. Can anyone tell me what It means ??

Thanx very much :ph34r:

- Alandor -

Share this post


Link to post
Share on other sites



Probably, :ph34r: it means User Define Function...

Share this post


Link to post
Share on other sites

Correct. A User Defined Function is a function that you can define in your code to do a task. It is often used so that you can eaisily run a block of code without having to type it out over and over. It can also return a value, and/or accept paramaters into the function. You can create some functions, and put them in a seperate source file so that you can include them in your scripts. That way, you just need to do a #include <FileName.au3> at the top of any script to gain access to any functions defined in that file. The full install of AutoIt also comes with some UDFs that you can use.


[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites

Yep, it means a user-defined function. The following is an example of a UDF that counts the number of times a character occurs in a string:

Func _StringCount($string, $char)
   Local $i, $count
   For $i = 1 to StringLen($string)
      If StringMid($string, $i, 1) = $char Then $count = $count + 1
   Next
   Return $count
EndFunc

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I think we should add this question to the FAQ

Share this post


Link to post
Share on other sites

Ohhh, ok ok. I know what a user function is. But becausse my native language is spanish and we don't use UDF in coding, I thought It was something different.

Thanx very much to all for your help. :ph34r:

Greetings,

- Alandor -

Share this post


Link to post
Share on other sites

Thanx Josbe, I downloaded already the spanish help file. But the problem was not the english language, only was the meaning of UDF. :ph34r:

Share this post


Link to post
Share on other sites

Thanx Josbe, I downloaded already the spanish help file. But the problem was not the english language, only was the meaning of UDF. :(

Fine. :ph34r: You could see the section(at the end): "Notas del traductor" :lol:

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  
Followers 0