>Thisform.ShowPicture()
>
>>Thisform.Grid1.Column1.Image1.Picture = employee.picfile > >RETURN Thisform.Grid1.Column1.FontBold >>
Public oForm oForm = Createobject('SampleForm') oForm.Show Define Class SampleForm As Form DataSession = 2 Add Object myGrid As Grid WITH Recordsource='myImageList' Procedure Load lcPath = _samples+'data\graphics\' Create Cursor myImageList (FileName m) For ix=1 To Adir(aImageList, m.lcPath+'*.Gif') Insert Into myImageList Values (m.lcPath+aImageList[m.ix,1]) Endfor Locate Endproc Procedure myGrid.Init With This .RecordSource = 'myImageList' .ColumnCount = 1 .RowHeight = 75 With .Columns(1) .Width=65 .AddObject('myImage','Image') .myImage.Visible = .T. .myImage.Stretch=1 .DynamicFontBold = 'thisform.ShowPicture()' .CurrentControl = 'myImage' .Sparse = .F. Endwith Endwith Endproc Procedure ShowPicture Thisform.myGrid.Columns(1).myImage.Picture = myImageList.FileName Endproc EnddefineCetin