[Xerte] Pass var into dot call

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jan 4 13:42:33 GMT 2011


Not sure I can do all those brcase quickly but that is saying

myPageIcon.myVar[0].FILE1

When myVar = VID95

So you want

unitDataList[(frameList[0].currentPage)-1].PAGE[frameList[1].currentPage]["VID95"][0].FILE1;




From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 04 January 2011 13:37
To: Xerte list
Subject: RE: [Xerte] Pass var into dot call



myvar = "VID95";

unitDataList[(frameList[0].currentPage)-1].PAGE[frameList[1].currentPage]["myvar[0]"].FILE1;

?
undefined







________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 4 Jan 2011 13:21:58 +0000
Subject: RE: [Xerte] Pass var into dot call
myObject['myProperty']

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 04 January 2011 12:57
To: Xerte list
Subject: [Xerte] Pass var into dot call


I'm having one of my frequent senior moments.

How do I pass a variable into a dot syntax call again?

e.g.
myvar = "VID95";

unitDataList[(frameList[0].currentPage)-1].PAGE[frameList[1].currentPage].myvar[0].FILE1;



This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110104/3f2b4471/attachment-0001.html


More information about the Xerte mailing list