Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing value not a reference
Message
From
20/03/2016 21:21:20
 
 
To
All
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Title:
Passing value not a reference
Miscellaneous
Thread ID:
01633405
Message ID:
01633405
Views:
56
In this line:
   oDiv.onmouseout=function(e) {OnMouseOut(e,tcAlignID,lnLeft,lnTop,lnWidth,lnHeight)}
   lnLeft=lnLeft-tnAlignOffsetLeft
   lnTop=lnTop-tnAlignOffsetTop
The values of lnLeft and lnTop, for example, are passed by reference.

However, once the event is triggered, the value is not what was passed but the adjusted value in the lines following.

What would be the best approach to pass a variable value?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform