Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing value not a reference
Message
De
20/03/2016 21:21:20
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Titre:
Passing value not a reference
Divers
Thread ID:
01633405
Message ID:
01633405
Vues:
55
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform