Access the Subject Number

437 views
Skip to first unread message

Greg Osenbach

unread,
Feb 9, 2009, 8:42:27 AM2/9/09
to e-p...@googlegroups.com
Hello,
I would like to be able to load a particular list file for specific
subjects. I can load the files, however I am having a difficult time
locating the Object.Property for retrieving the subject number that
was entered. Can anyone point me in the right direction?

Thanks!

Best Regards,
Greg

Nicole Anderson

unread,
Feb 9, 2009, 9:30:57 AM2/9/09
to e-p...@googlegroups.com
Hello Greg,

Just dim a string variable in your user script, e.g.,
Dim SubNum as String

And then in an InLine, type
SubNum=C.GetAttrib("Subject")

Cheers,

Nicole Anderson
--

______________________________________________________________________
Nicole D. Anderson, PhD, CPsych
Associate Professor, Psychiatry and Psychology, University of Toronto
Scientist, Kunin-Lunenfeld Applied Research Unit, Baycrest
3560 Bathurst Street
Toronto, Ontario M6A 2E1
Phone: (416) 785-2500 x3366
Fax: (416) 785-2862
Email: nand...@klaru-baycrest.on.ca



Albertyna Paciorek

unread,
Feb 9, 2009, 10:17:52 AM2/9/09
to e-p...@googlegroups.com
Can I please be taken off the list?
 
Thank you
 
Albertyna

On Mon, Feb 9, 2009 at 4:16 PM, Albertyna Paciorek <aw...@cam.ac.uk> wrote:

Can I please be taken off the list?
 
Thank you
 
Albertyna

David McFarlane

unread,
Feb 9, 2009, 11:59:20 AM2/9/09
to e-p...@googlegroups.com
In fact, you can even skip the step of declaring a variable, and just
use c.GetAttrib("Subject") directly wherever you need it, e.g.,

ListFileName = "ListFile" & c.GetAttrib("Subject") & ".txt"

It all depends on what is most convenient for you, and what fits your
programming style.

-- David McFarlane, Professional Faultfinder

Greg Osenbach

unread,
Feb 9, 2009, 12:19:55 PM2/9/09
to e-p...@googlegroups.com
Does c.GetAttrib("Subject") get the subject's name or the Subject
Number (I am after the subject Number)

If not, now that I know that it is an attribute and not an object
property I just be able to find it fairly easily. Thanks for the
assistance

Greg

David McFarlane

unread,
Feb 9, 2009, 1:28:27 PM2/9/09
to e-p...@googlegroups.com
Greg,

>Does c.GetAttrib("Subject") get the subject's name or the Subject
>Number (I am after the subject Number)

Subject number. Matter of fact, you cannot get the subject name at
all, unless you change the default behavior of E-Prime. Subject
number, Session, and more get controlled via the Startup Info tab of
the Experiment object properties box, and you can see how all this
works by looking at the generated code for Sub Main(), in the
sections following "StartupInfoPrompt" labels.

Hope that helps a bit,

Reply all
Reply to author
Forward
0 new messages