This fails to set the filename of an image area/object even though "the
files" returns the image name I want to use.

Can anyone spot my mistake?

TIA
sims
---

*on* mouseUp

   *put* specialFolderPath("documents") into imageFolder

   *put* "http://ezpzapps.com/hagar/a1010_1.jpg"; into tImageToGet

   *put* "binfile:" before tImageToGet

   *put* tImageToGet into fld "toget"

   *put* specialFolderPath("documents") into tDoc

   *put* "file:"&tDoc&"/"&"a1010_1.jpg" into tFileLoc

   *put*  url tImageToGet into url tFileLoc

   *set* the defaultFolder to imageFolder

   *put* the Files into tFls

   *answer* "the files are"&cr& tFLs *-- THIS GIVES "a1010_1.jpg"*

   *put* imageFolder & "/" & "a1010_1.jpg" into tFLoad

   *set* the filename of image "testerz" to tFLoad

*end*  mouseUp
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to