sequentially read attributes entered on a unique line of a list

Adeline adeline.paignon at univ-savoie.fr
Thu May 26 19:30:00 UTC 2011


Nice !!!
thank you for your help,
the code works well !
thanks
adeline



On May 23, 9:02 pm, David McFarlane <mcfar... at msu.edu> wrote:
> >is it possible with eprime to "read" the attributes cell by cell in
> >a list and not row by row ?
>
> Well, you might do that with some inline code. E.g., suppose you have
> a List with attributes for Square1, Square2, Square3, and Square4,
> then the following code would successively assign the value of each
> attribute to the single attribute "Square":
>
> Const nAttrib as Integer = 4
> Dim  i as Integer
> For i = 1 to nAttrib
>      c.SetAttrib "Square", c.GetAttrib( "Square" & i )
>      ' more code to make use of this here...
> Next i
>
> The key is that attribute names are nothing more than strings, and
> you may construct them using ordinary string concatentation and other
> operations, then use the resulting name in a call to GetAttrib().
>
> Another way to get at attributes one-by-one in a single row of a List
> is to put those values in a nested List from your main List, and then
> access the individual rows of the nested List using colon
> syntax.  Just look up "colon syntax" in the index of the User's Guide
> that came with E-Prime.
>
> I am just addressing the academic "is it possible" question here, I
> am not sure that this will have any practical benefit for programming
> your particular task, but there you go.
>
> -- 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