Hi,
I love using custom functions to prevent code repetition, in most cases it works great, however, in cases where I need to do things like Show or Alert I get errors like "
'show' can be used only in on load actions"
. This necessitates that I have to copy and paste my code over and over as I can not use "show" in the Functions interface (as the compiler does not know where the function will be utilized).
Is there anyway to make custom functions that use methods like show and alert? Or is there some way to tell the compiler in what context these functions will be used to prevent the error?