Hmm maybe I should be clearer and supply some code (from your code I think you are storing the images themselves and not the paths):
<pre>
Public oForm
oForm = Createobject('myForm')
oForm.Show
Define Class myForm As Form
DataSession = 2
Height = 600
Width = 600
cImagePath = _samples+"data\graphics"
Add Object myGrid As Grid ;
with Height = 600, Width = 600, ;
RecordSource="myImageList",ColumnCount=3,RecordSource='crsSample'
Procedure Load
Create Cursor myImageList (ImgFile m NoCPTrans,FileName m)
For ix=1 To Adir(aImageList, Addbs(This.cImagePath)+'*.*')
Insert Into myImageList Values ;
(Filetostr(Addbs(This.cImagePath)+aImageList[ix,1]), aImageList[ix,1])
Endfor
Locate
Select emp.First_Name,emp.Last_name,img.ImgFile ;
FROM (_samples+"data\employee") emp ;
LEFT Join myImageList img ;
ON Upper(Juststem(img.FileName)) == ;
Upper(Left(emp.Last_name,4)+Left(emp.First_Name,4)) ;
INTO Cursor crsSample
Endproc
Procedure myGrid.Init
Local loColumn
This.AddColumn(This.ColumnCount+1)
With This.Columns(This.ColumnCount)
.Name = 'myImgCol'
.AddObject('myImage','Image')
.CurrentControl = 'myImage'
.Sparse = .F.
.myImage.Visible = .T.
.DynamicFontBold = '(thisform.UpdateImage('+;
'thisform.myGrid.myImgCol.myImage,crsSample.imgFile))'
.Width = 180
Endwith
This.RowHeight = 200
Endproc
Procedure UpdateImage
Lparameters toImageCol, tcImage
toImageCol.PictureVal = Nvl(m.tcImage,'')
Endproc
Enddefine
</pre>
Cetin Basoz
MS Foxpro MVP, MCP