Forum Discussion
chrisb
12 years agoRegular Contributor
If I understand the second part of your question correctly you would like to know why you cannot run a script you are working on.
Perhaps the problem is that the routine your are working on has parameters? Take a look at the 2 routines below.
If you copy them into scripting and click inside routine_a you will see that the option to run is enabled. Then click inside routine_b and you will see the option to run is disabled. You can't run routine_b as it has parameters and is expecting the argument ''message'.
You would need to write another routine to call routine_b.
Does this help?
Sub routine_a()
log.message "hello"
End Sub
Sub routine_b (ByVal message)
log.message message
End Sub
Perhaps the problem is that the routine your are working on has parameters? Take a look at the 2 routines below.
If you copy them into scripting and click inside routine_a you will see that the option to run is enabled. Then click inside routine_b and you will see the option to run is disabled. You can't run routine_b as it has parameters and is expecting the argument ''message'.
You would need to write another routine to call routine_b.
Does this help?
Sub routine_a()
log.message "hello"
End Sub
Sub routine_b (ByVal message)
log.message message
End Sub