[Xerte] indexOf and arrays

Dave Burnett d_b_burnett at hotmail.com
Thu Oct 21 18:23:13 BST 2010


Cool.

Case sensitive?


From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 21 Oct 2010 18:05:58 +0100
Subject: RE: [Xerte] indexOf and arrays











check the help: I added a load of Authorware style methods to the array class for findValue, contains, etc
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 21 October 2010 17:52

To: Xerte list

Subject: RE: [Xerte] indexOf and arrays





Found it.



I thought an array of strings would be treated as such, but apparently not. :-)



attributeArray.toString().indexOf('graphic');






From: Patrick.Lockley at nottingham.ac.uk

To: xerte at lists.nottingham.ac.uk

Date: Thu, 21 Oct 2010 17:38:17 +0100

Subject: RE: [Xerte] indexOf and arrays





Can only suggest searching the code, or waiting for Julian.
 


From: xerte-bounces at lists.nottingham.ac.uk
 [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett

Sent: 21 October 2010 17:31

To: Xerte list

Subject: [Xerte] indexOf and arrays


 


Can I check for an array value 



I debug my array and get this:



graphic,text,index



But,



debug(attributeArray.indexOf('graphic')); //returns undefined.



indexOf not supported or my syntax stinks?



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.





_______________________________________________
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/20101021/ab0a2a46/attachment.html


More information about the Xerte mailing list