Problem an Repeat Loop

Paul Dupuis paul at researchware.com
Mon Sep 28 09:34:23 EDT 2020


On 9/28/2020 8:42 AM, Sannyasin Brahmanathaswami via use-livecode wrote:
>       repeat with x = 2 to sTotalSceneCount
>
>       	put line x of sImageList into tPath
>      	go to card x
>      	 set the filename of sStoryImage to tPath
>      	 set the itemDelimiter to “|”
>       	put item x of sQuoteList into fld “mainText”
>       end repeat

something like this? It might be easier to help if you explained what 
you are trying to do. Have all the cards in this stack been created 
already? i.e. do you have sTotalSceneCount cards? Does each card contain 
a field called "mainText" and an image called "slideImage"?

set the itemDelimiter to “|”
repeat with x = 2 to sTotalSceneCount
    set the filename of img "slideImage" of card x to line x of sImageList
    set the text of fld "mainText" of card x to item x of of sQuoteList
end repeat





More information about the use-livecode mailing list