Jump to content
Sign in to follow this  
B3TA_SCR1PT3R

functions without Func()

Recommended Posts

B3TA_SCR1PT3R

theres probly already a thread but i dont feel like looking throu all 60 some odd pages

wat do u type 2 get your script 2 to read from a certain part of the script without making a Func() kinda like the GOTO

??


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites
pcdestroyer

ummm i dont think that's possible ... but neway what's wrong with "func"?

Share this post


Link to post
Share on other sites
GaryFrost

almost didn't feel like answering this, you should try "if" statements sometime.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
buzz44
Func is equivilant to Goto isn't it?

qq

Share this post


Link to post
Share on other sites
this-is-me

If you believe that, I have some nice desert land in the middle of the ocean to sell you.


Who else would I be?

Share this post


Link to post
Share on other sites
GaryFrost

not sure why anyone would want spaghetti code, always gives me a headache.

utilize while loops and if statements and functions.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
blindwig

Func is equivilant to Goto isn't it?

<{POST_SNAPBACK}>

No, Func is more like GoSub. Goto does not push your current location onto the stack.

Share this post


Link to post
Share on other sites
buzz44

Thanks.


qq

Share this post


Link to post
Share on other sites
t0ddie

goto like in autoit 2, will literally go to where you tell it in the script.

then continue from the place the "function" finished.

yes, the function command in autoit 3 is more like gosub. it goes where you tell it, but you dont have to tell it to come back. after its finished, the script will resume at the place where you called the function, instead of just continuing the script from where the function ends.

not that enough people havent explained that, i just wanted to clarify and add my 2 cents

EDIT: but i want to know why you dont want to use function?

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

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  

×