Yes! I was thinking of a one card, Sheesh
It all worked!
Paul Dupuis wrote:
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 o
The long ID of the image will be different for each card, so this loop won’t
work as expected.
Also, do you really need to go to the card? You probably could build the
object reference to include the card. So you would use:
image “slideImage” of cd x
fld “mainText” of cd x
Sent from my iPhon
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 sQuo
I use the long name of the image
local sStoryImage
put the long id of img "slideImage" into sStoryImage
still:
# for development
local tPath
repeat with x = 2 to sTotalSceneCount
put line x of sImageList into tPath
go to card x
set the filename of sStory
You do not refer to any object type when you try to set the fileName of what
should possibly be an image.
Try this:
Set the fileName of image sStoryImage to tPath
Best regards
Tore Nilsen
> 28. sep. 2020 kl. 03:47 skrev Sannyasin Brahmanathaswami via use-livecode
> :
>
> # for development
>
# for development
local tPath
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
# I get a