Jump to content
Sign in to follow this  
peteront

Nested Functions

Recommended Posts

peteront

Sorry if this is something simple, I've tried and I can see how it works just can't get it to work on the script I want!

What I need to do is have a box that gives a choice, from there get 2 or 3 input boxes that feed variables to a general function to carry out what I want to do.

The process works great if I'm not passing a variable to the sub functions but as soon as I do I get a "Variable not decared" error.

Here is my script - I've checked the forum and I just can't seem to see anything that helps.

Hope someone can assist!!

Peter

myscript.txt

Share this post


Link to post
Share on other sites
ripdad

You need to declare the variables

Put this at top of script under the #include

Global $Username, $Oldcomp, $Newcomp

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Share this post


Link to post
Share on other sites
Jos

Do you really want to Exit the Script at the end of each Func?

You either use Return to return from a Func or it will automatically return when the Func ends.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.