adding and subtracting

David McFarlane mcfarla9 at msu.edu
Mon Jun 14 18:00:12 UTC 2010


Matt,

This is not an E-Prime question, this is a 
general computer programming question.  So I 
repeat my earlier advice -- sign up for an 
introductory class on computer programming.  If 
you cannot bring yourself to do that, then it is 
time to hire this work out to someone else.

-- David McFarlane, Professional Faultfinder


At 6/11/2010 04:23 PM Friday, you wrote:
>thats kind of what i was expecting. so far I've looked through the
>pages here, the PST user forum, and the VBA for dummies book but I'm
>unable to find an example of hwo to perform a simple calculation. I'm
>assuming the variables have to be declared and it would require a
>cGetAttib and c.SetAttrib If...Then statement. however, being "green"
>to programming I'm not 100% sure if that's in fact correct. am i on
>the right track at least?
>
>On Jun 11, 2:45 pm, David McFarlane <mcfar... at msu.edu> wrote:
> > Matt,
> >
> > >Quick question for anyone; I’m looking to perform some basic
> > >arithmetic operations within a lottery experiment. There are four
> > >values in the lottery 10, 8, 5, and 3 and each value currently
> > >contains 10 trials which range from .10, .20, … to 1.00. On each
> > >trial, the value will be either increased or decreased dependent upon
> > >which trial is currently operating, e.g. .10 will increase or decrease
> > >the value of 10. Thus, after decreasing the value five times, the new
> > >value would be 9.50. Is there a way to accomplish this without the use
> > >of an inline and if not
> >
> > Only if you can assign each sequence in advance
> > withouth regard to subject responses.  In that
> > case you might just put each possible sequence of
> > values in a List and roll out the chosen sequence
> > as needed.  Otherwise, you will need inline code.
> >
> > >, can anyone direct me to some script that adds or subtracts?
> >
> > Not me.  Best to take care of that yourself,
> > start studying Chapter 4 of the User Guide that
> > came with E-Prime, you will need some inline
> > code, as well as some global variables defined in
> > the User Script area.  Even better, start with an
> > Introduction to Computer Programming class to get
> > some basic computer programming concepts.
> >
> > Good luck,
> > -- David McFarlane, Professional Faultfinder

-- 
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