How many samples in a List object?

Paul Gr pauls_postbus at hotmail.com
Tue Nov 7 19:54:11 UTC 2006


Hi Jim,

There is some info available about this topic in the EBasic help document 
(the List object is a good starting point.) However, EPrime is a bit picky 
about editing the contents of a List (or FactorSpace) object at runtime, so 
perhaps you should choose a different approach before even trying this. 
(Assuming you would like to implement some non-straightforward 
modifications.) However, there are some pieces of example code that should 
work:


‘ (piece of code copied from List.GetAttrib description)
  Dim i As Integer
  For i = 1 To List1.Order.Count
	Debug.Print "The Stimulus for level " & i & " is " &_
	List1.GetAttrib(i, "Stimulus")
  Next i


best,
paul





>From: EJ Nikelski <nikelski at bic.mni.mcgill.ca>
>To: eprime at mail.talkbank.org
>Subject: How many samples in a List object?
>Date: Mon, 06 Nov 2006 15:20:25 -0500
>
>Hello List,
>
>    I have a brief question that has me stumped. When writing inline code, 
>to, say, loop through all entries in a list, how can I tell how many 
>entries (samples) are in the list? I've tried ListName.Samples, and a 
>number of GetAttr possibilities, but have yet to stumble upon the answer. 
>If anyone knows the answer (and where it might be in the documentation), 
>I'd be a very happy camper. Thanks in advance.
>
>-Jim
>
>
>
>--
>Jim Nikelski, Ph.D.
>Postdoctoral Research Fellow
>Bloomfield Centre for Research in Aging
>Lady Davis Institute for Medical Research
>Sir Mortimer B. Davis - Jewish General Hospital
>McGill University
>Tel: (514) 340-8222 x 2298
>Fax: (514) 340-8295
>

_________________________________________________________________
Gratis virusbescherming terwijl je zoekt! http://toolbar.live.com/



More information about the Eprime mailing list