>Hi Grady,
>
>It's hard to tell from your code which are memory variables and which are table fields. You should either use 'm.' prefix or Hungarian notation for memore variables to make code readable and avoid conflict between memory variables and table fields.
>
>>I have a file that has map coords in it. It loads and places shapes on a map at the coords in the table. All works fine so far.
>>But I need to remove some of the shapes if the date in the table is less than the date calculated in this little routine. When the code runs, it removes all the shape and leaves none when it should be leaving shapes > Dday behind for viewing.
>>
m.Dday = (Date() - m.nDateNumber)
Scan
If localcrime1.crimedate < m.Dday
m.ShapeID = localcrime1.shapename
Thisform.RemoveObject(m.ShapeID)
Endif
Endscan
What error have I made this time?
I ain't skeert of nuttin eh?
Yikes! What was that?