Erel,
Some code:
Sub Show1
bmpsrc1.Dispose
AddObject("bmpsrc1","Bitmap")
bmpsrc1.New1(PhotoPath & Photo1)
drawer1.DrawImage1(bmpsrc1.Value,rectsrc1.Value,rectdes1.Value,true)
drawer1.Refresh2(rectdes1.Value)
End sub
Sub Show2
bmpsrc2.Dispose
AddObject("bmpsrc2","Bitmap")
bmpsrc2.New1(PhotoPath & Photo2)
drawer2.DrawImage1(bmpsrc2.Value,rectsrc2.Value,rectdes2.Value,true)
drawer2.Refresh2(rectdes2.Value)
End sub
Sub Table1_SelectionChanged (ColName, Row)
If ShowMode=true then
Photo1=Table1.Cell("Photo1",Row)& ".bmp"
Photo2=Table1.Cell("Photo2",Row)& ".bmp"
Photo3=Table1.Cell("Photo3",Row)& ".bmp"
If Photo1 = ".bmp" Then
Photo1=dummy
end if
If Photo2 = ".bmp" Then
Photo2=dummy
end if
If Photo3 = ".bmp" Then
Photo3=dummy
end if
Show1
Show2
Show3
else
If Ignore=false then
TextBox1.Text= Table1.Cell("Photo1",Row)
TextBox2.Text= Table1.Cell("Photo2",Row)
TextBox3.Text= Table1.Cell("Photo3",Row)
end if
ResetColors
PhotoSeq=0
end if
The underlined line causes the problem.
Photo1, Photo2 and Photo3 are declared globals.
If you need I can also send you the complete application with the data base and some other stuff.
Harry