Ask a Question

'Run Current Routine' button in the Code Editor toolbar

SOLVED
randall
Contributor

Re: 'Run Current Routine' button in the Code Editor toolbar

Marsha,

 

I don't think so.  In Jscript there are no subroutines.  Everything is a function, even the main.  Besides, I've been working on this project since April and have not had this problem until now.

 

Thanks,

Randall

joseph_michaud
Moderator

Re: 'Run Current Routine' button in the Code Editor toolbar

Are you setting the cursor inside the DeleteDatabase() function?  The Run button only works with functions that have no parameters...

-----
Joseph

View solution in original post

randall
Contributor

Re: 'Run Current Routine' button in the Code Editor toolbar

Joseph,

 

I am and I believe I have found the error in my ways.  When running a function with parameters I usually comment out the function start line and create a new one without any parameters.  Then I explicitly define the parameters inside the function.  I obviously forgot to do that this time.

 

Thanks for helping me to see the forest amongst the trees. 🙂

 

Cheers,

Randall

cancel
Showing results for 
Search instead for 
Did you mean: