What is the current row in a list

Chris Blais cblais at berkeley.edu
Mon Feb 23 05:05:20 UTC 2009


I know it's logged as BlockList.Sample in the eDat file, but yes, it 
doesn't exist as a method/property of the object.

Given your code:
If (c.GetAttrib(BlockList.Sample) = Lot1) Then
     Lot1CE = CEValue
End If
If (c.GetAttrib(BlockList.Sample) = Lot2) Then
     Lot2CE = CEValue
End If

Couldn't you just add another Attribute/Column to the list which serves 
the same purpose? For example, name a column LotValue which has "Lot1" 
or "Lot2" as its value and then:

If (c.GetAttrib(LotValue) = "Lot1") Then
     Lot1CE = CEValue
Elseif (c.GetAttrib(LotValue) = "Lot2") Then
     Lot2CE = CEValue
End If


Greg Osenbach wrote:
> Chris,
> 
> Debug.Print "Row = " + str(BlockList.Sample) just gets me an invalid 
> property error.
> 
> On Sun, Feb 22, 2009 at 11:43 PM, Chris Blais <cblais at berkeley.edu 
> <mailto:cblais at berkeley.edu>> wrote:
> 
> 
> 
>     Hmm...I've never actually used the .sample method. Have you tried
>     calling it as BlockList.Sample (in the same way as you might call
>     Target.RT)?
> 
>     Greg Osenbach wrote:
>      > Hmm.. This just seems to give me an error
>      >
>      > "Sample is not a property of the Object"
>      >
>      > Suggestions?
>      >
>      > My line of code:
>      > Debug.Print "Row = " + str(c.GetAttrib(BlockList.Sample))
>      >
>      > And:
>      > If (c.GetAttrib(BlockList.Sample) = Lot1) Then
>      >     Lot1CE = CEValue
>      > End If
>      > If (c.GetAttrib(BlockList.Sample) = Lot2) Then
>      >     Lot2CE = CEValue
>      > End If
>      >
>      > Thanks,
>      > Greg
>      >
>      > On Sun, Feb 22, 2009 at 10:31 PM, Chris Blais
>     <cblais at berkeley.edu <mailto:cblais at berkeley.edu>
>      > <mailto:cblais at berkeley.edu <mailto:cblais at berkeley.edu>>> wrote:
>      >
>      >
>      >     It will be found in the .edat file. Or, it you need to see it in
>      >     real-time for debugging you can write an inLine:
>      >
>      >     debug.print "ListName_Row=" & ListName.Sample
>      >
>      >     where ListName is the name of the list and the .sample
>     numbers range
>      >     from 1 to the number of items in the list and they numbered
>     in the order
>      >     in which they appear in the list.
>      >
>      >     Greg Osenbach wrote:
>      >      > Hi guys.  I am struggling with this one.
>      >      >
>      >      > How do I determine what the current row in a list my
>     experiment is
>      >      > using?  I have been messing around with this one for
>     hours.  If
>      >     anyone
>      >      > can point me int he correct direction, it would be most
>     appreciated.
>      >      >
>      >      > Thanks,
>      >      > Greg
>      >      >
>      >      > >
>      >
>      >
>      >
>      >
>      >
>      > >
> 
> 
> 
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list