Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance,force
- c:=My_Function(2,2) ; this first call I put both arguments in
- Msgbox,% c ; this shows the value of c after it is returned from the function
- c:=My_Function(2) ;This time I only added one of the arguments, so the function will use the default for the second value
- Msgbox,% c ; this shows the value of c after it is returned from the function
- return
- My_Function(a,b:=10) ; b is set up so that if you only pass one argument, b will default to 10
- {
- return a + b
- }
- *^esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement