www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Calling multiple functions - how to?
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I have an edit form where I need to call a function for 45 boxes whenever a user moves the cursor from any one of the 45 boxes. So, in my screen script, I have the following:

function box1_onBlur()
{
changeToZero();
Command.refreshWindow();
}

function box2_onBlur()
{
changeToZero();
Command.refreshWindow();
}

etc...

Can you call an _onBlur event for more than one box efficiently?

Something like:

function boxBD01Hours_onBlur();boxBD02Hours_onBlur()
{
changeToZero();
Command.refreshWindow();
}

???

Any ideas?
 
Posts: 47 | Registered: Tue July 15 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
not really, but you could move the refresh to the change to zero function, and make it a single line:


function box1_onBlur() { changeToZero(); }
function box2_onBlur() { changeToZero(); }


Luke Stephenson
 
Posts: 112 | Location: Ottawa, Ont, Canada | Registered: Sun July 13 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
That's an idea I hadn't thought of. Thanks Luke!
 
Posts: 47 | Registered: Tue July 15 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Calling multiple functions - how to?