Image control in a Background

Vaughn Clement vclement at
Tue Jun 24 11:35:29 EDT 2014


I am somewhat closer to the solution? I tested the correction that J.
Landman Gay suggested where I remove the "then" at the end of the this
line:  "set the defaultfolder to specialFolderPath ("documents") &
"/photos/" then <--"
This had the effect of not updating the image in any card. When I added it
back in, the image control will not change all of the cards now, but it
will not update the current image either until I go to a different card and
return to find the image then updated to the correct image. The script now
does not change all of the cards, it just does not update while the image
control is being edited. As I found out the update only occurs after I
return to the edited card. It seems that the script is not making the image
control update at the time of the edit. Can you suggest a correction?

Thank you

Vaughn Clement

Apps by Vaughn Clement (Support)
Skype: vaughn.clement
FaceTime: vclement at
LogMeIn also avaialble
Call on "ooVoo" at address:  vaughnclement or 9282549062
Ph. 928-254-9062

On Fri, Jun 20, 2014 at 12:13 PM, J. Landman Gay <jacque at>

> On 6/20/2014, 10:23 AM, Vaughn Clement wrote:
>  The image control is supposed load when the card opens and the last photo
>> is to be displayed?
> >
>> *on*  openCard
>>     *set*  the defaultfolder to specialFolderPath ("documents") &
>> "/photos/"
>>     *--answer the files*
>>     *if*  the number of this card >1*then*
>>        *set*  the defaultfolder to specialFolderPath ("documents") &
>> "/photos/"*then*
>>           *if*  there is a file the short id of this card*then*
>>              *put*  specialFolderPath ("documents") & "/photos/" & the
>> short
>> ID of this card into thePath
>>              *set*  the filename of image "imegeField1" of this card to
>> thepath
>>           *end*  *if*
>>        *end*  *if*
>> *end*  openCard
> Is this a direct copy/paste? This line is malformed:
>  set the defaultfolder to specialFolderPath ("documents") & "/photos/"
> then <--
> Remove the trailing "then". Also, the image name is misspelled as
> "imegeField1" ("e" rather than "a") which is more likely the reason for the
> problem.
> --
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the use-livecode mailing list