import paint
Posted: Mon Aug 04, 2014 9:28 am
I need to know the name of the directory of "Thumnails".
I use:
errormessage: field "index": execution error at line 24 (import: can't open file, mask file or display) near "D:/Livecode /thumbnails/Cassoulet.jpg", char 1
What's wrong ?. When i use the outcommented lines: no problem
Rob
I use:
Code: Select all
on mouseUp
global tSeltxt
-- put the filename of this stack into tFilenm
-- put the number of chars of tFilenm into tNum
-- put tNum-18 into tMin
-- delete char tMin to tNum of tFilenm
put the defaultFolder into tFilenm
put tFilenm &" /thumbnails/" into tStam
lock screen
put selectedtext of fld index into tVar
put tVar into tSeltxt
put lineoffset (tVar,fld index) into tLO
put number of lines of fld index into tLines
put tLO && "of" && tLines into tKeus
set the label of button "linenumber" to tKeus
put fld "titel" of card tVar of stack "recepten" into fld "titel"
put fld "nodig" of card tVar of stack "recepten" into fld "ingr"
put fld "recept" of card tVar of stack "recepten" into fld "recept"
delete last image
-- put tFilenm & "thumbnails/" into tStam
import paint from file tStam& tVar&".jpg" --------------------errormessage, see below
set the rect of last image to the rect of button "pict"
set the lockloc of last image to true
unlock screen
end mouseUp
What's wrong ?. When i use the outcommented lines: no problem
Rob