Thanks David! Much appreciated!<br><br><div class="gmail_quote">On Wed, Dec 10, 2008 at 1:35 PM, David McFarlane <span dir="ltr"><<a href="mailto:mcfarla9@msu.edu">mcfarla9@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Andrée-Ann,<br>
<div class="Ih2E3d"><br>
Nicole Anderson wrote:<br>
> Try adding this after your code (should be ok after all the changes)<br>
><br>
> StudyOne.Reset<br>
<br>
</div>And while you are at it, you can probably also skip all the If-Thens and<br>
simplify the whole thing to something like<br>
<br>
For i = 1 to StudyOne.Size<br>
     StudyOne.SetWeight i, StudyOne.GetAttrib(i, "Cond")<br>
Next i<br>
StudyOne.Reset<br>
<font color="#888888"><br>
-- David McFarlane, Professional Faultfinder<br>
</font><div class="Ih2E3d"><br>
<br>
> andreeann Cyr wrote:<br>
>> Hi All,<br>
>><br>
>> I have a question about how to set the value of weights in a list.<br>
>><br>
>> The program initially reads into a text file and I want the weight<br>
>> value to change to correspond to a value in another column (i.e.<br>
>> "Cond" in this case).<br>
>><br>
>> Right now, I have the following code (StudyOne is my list):<br>
>><br>
>> If   StudyOne.GetAttrib(i, "Cond") = "1" then<br>
>>     StudyOne.SetWeight i, 1<br>
>> End if<br>
>><br>
>> If   StudyOne.GetAttrib(i, "Cond") = "2" then<br>
>>     StudyOne.SetWeight i, 2<br>
>> End if<br>
>><br>
>> And so forth....<br>
>><br>
>> And it's not working! The weight values remain at 1. Any suggestions?<br>
>><br>
>> Thanks in advance :)<br>
>><br>
>> Andrée-Ann<br>
<br>
<br>
</div><div><div></div><div class="Wj3C7c"><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> "I have access to the alterity of the Other from the society I maintain with him, and not by quitting this relation in order to reflect on its terms." (Levinas)<br>
<br> <br>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "E-Prime" group. <br> To post to this group, send email to e-prime@googlegroups.com <br> To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/e-prime?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
<br>