Jump to content

Nested Functions


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...