> Thisform.AddObject( Sys(2015), "shape") > With Thisform.Controls[thisform.ControlCount] && the last member >This is a potentially error prone code fragment. It's not 100% assured that another control isn't going to get inserted by some other chunk of code.
lcName = sys(2015) thisform.AddObject( lcName, "shape" ) with eval( "thisform." + lcName )will make sure you have the correct object for manipulation. If you want to relocate an object later on to update it, built its name off of something like it's PK:
lcName = "crimescene" + padl( crime.crimeno, 8, '0' )which will let you easily talk to that object later by name.