Ticket #72 (closed defect: worksforme)

Opened 2 months ago

Last modified 3 weeks ago

array indexing confused by mixed quotes

Reported by: nick.belsh..@earth.ox.ac.uk Assigned to: bi..@lilyapp.org
Priority: major Milestone: 0.1
Component: App Version: Public Beta 2pre2
Keywords: Cc:

Description

if some items in an array have quotes and others do not, array indexing returns confusing data

e.g. for one, 'two',three,'four'

array index 2 returns ,three, rather than just three

Change History

07/21/08 15:24:03 changed by bi..@lilyapp.org

Any string in an array needs to be quoted, otherwise js errors will result. Can you provide a patch or a more info on how the array was created?

08/20/08 12:09:29 changed by bi..@lilyapp.org

Hi Nick

Are you using the message extern to construct the array you're trying to index? If you use buffer or pack to build up your array, you won't have to worry about quoting or not quoting the strings and indexing will working fine. Let me know if you this work in your situation.

08/21/08 15:26:48 changed by bi..@lilyapp.org

  • status changed from new to closed.
  • resolution set to worksforme.

closing this for now – will reopen if needed.