Sign in to follow this  
Followers 0
stackover

Call('') or Call()

8 posts in this topic

What is the diference of use Call('') or Call()? I dont see any diference. Any difenrece in background or for processor. Anyway what is better use for one and for other?

Regards

Share this post


Link to post
Share on other sites



I would use Call("") .. Reason I think it looks better, i dont think theres anything else to it :)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It isn't possible to call the function Call without the first parameter.

You at least have to use:

Call('Test1')
Func Test1()
    MsgBox(4096, '', 'Hello')
EndFunc
Edited by freanir

freanir

Share this post


Link to post
Share on other sites

What is the diference of use Call('') or Call()? I dont see any diference. Any difenrece in background or for processor. Anyway what is better use for one and for other?

Regards

It's Call('myfunc') or myfunc(). Not Call('') or Call().

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

@xcal .... everybody understood what I wanted to say

If u cant help dont flood.

Regards

Edited by stackover

Share this post


Link to post
Share on other sites

@xcal .... lol everybody means what I meant...

If u cant help dont flood.

Regards

Because you have such a way with words?

If you meant something different than what you posted, why not just post what you meant in the first place?

Share this post


Link to post
Share on other sites

Makes sense and is the normal way of calling a function : func1()

Makes sense as Call's parameter isn't only a literal string but also a variable : Call("func" & $i)

Makes no sense at all since Call's parameter is a literal string : Call("func1")

Using Call with only literal strings is pretty much like asking the telephone operator what the number for 911 is.

Normally, unless I'm insanely bored, I just ignore topics where the OP is using Call like that...that or I just can't

find the "Reply"-button due to all the blood in my eyes. Also, stackover...you obviously weren't very clear in what

you meant, since freanir also misunderstood you.

Share this post


Link to post
Share on other sites

Thanks Helge, now I know the diference between Call('myfunc') or myfunc(). 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