herworth Posted May 11, 2004 Share Posted May 11, 2004 Can you set a default parameter in a function the way you can VBA eg Func Myfunc($x) If $x is missing then $x = y more code ... endfunc I can't see anything so I assume not. Just thought I'd ask tho'. [u][font="Arial"]Pete[/font][/u] Link to comment Share on other sites More sharing options...
scriptkitty Posted May 11, 2004 Share Posted May 11, 2004 Func Myfunc($x) If IsDeclared ("x") then $x = "y" ;or If IsDeclared ("x") then $x = $y ;or If $x="" then $x = $y ;more code ... endfunc no is missing in autoit, and you cant call out just y, it needs to be "Y" or $y. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
CyberSlug Posted May 11, 2004 Share Posted May 11, 2004 Can you set a default parameter in a function the way you can VBAIt's being considered see here Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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