line number in a for each repeat
Brian Yennie
briany at qldlearning.com
Thu Apr 21 17:00:35 EDT 2005
Thomas,
You can always just add your own counter to the loop:
put 0 into lineNumber
repeat for each line x in theKeys
add 1 to lineNumber
...
end repeat
HTH
- Brian
> I'm afraid that gets me "three" and not the line number 3 which is
> what I needed.
>
> I am now trying to use the lineoffset on the global using the short
> name of the target with the global list of images.
>
> Thank you
>
> On Apr 21, 2005, at 4:28 PM, Scott Rossi wrote:
>
>> Recently, Thomas McGrath III wrote:
>>
>>> repeat for each line x in theKeys
>>> if x = theKey then -- after the third sweep it comes to x =
>>> three
>>>
>>> -- this is where I need the actual line number that three is
>>> in
>>> theKeys global which in this case is 3
>>> put line x into theblend -- doesn't work
>>> --put the line number of x of theKeys into theblend -- doesn't work
>>
>> put x into theBlend
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, Multimedia & Design
>> -----
>> E: scott at tactilemedia.com
>> W: http://www.tactilemedia.com
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> Thomas J. McGrath III
> SCS
> 1000 Killarney Dr.
> Pittsburgh, PA 15234
> 412-885-8541
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the use-livecode
mailing list