Alan1234 Posted October 13, 2017 Posted October 13, 2017 The following script is my first function, however it doesn't give a result. What am I doing wrong? #include <MsgBoxConstants.au3> $x = 1 $y = 2 func addem($x,$y) $x + $y EndFunc MsgBox($MB_SYSTEMMODAL, '', "1 + 2 = " & addem)
Danp2 Posted October 13, 2017 Posted October 13, 2017 Hi. Try this -- #include <MsgBoxConstants.au3> $x = 1 $y = 2 MsgBox($MB_SYSTEMMODAL, '', "1 + 2 = " & addem($x, $y)) func addem($x,$y) Return $x + $y EndFunc Latest Webdriver UDF Release Webdriver Wiki FAQs
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