one dbpro coding habit i have struggled to break for a long time now is the use of boolean commands like
sprite exist() the way you have here.
while the code examples in the help files associated with these commands, ie:
Quote: "if sprite exist(1) then print "Found a sprite""
should and do work (99.99% of the time), i believe it's a better habit to, instead, code:
Quote: "if sprite exist(1) =1 then print "Found a sprite""
...as, in my 1/2 dozen years of tinkering with dbpro, i've experienced similar, confounding errors (a mere 3-4 times) that were fixed by the "=1" addition.
i have no idea why (these things are magic to me), but it does seem to make a difference. it's probably a dbpro bug but since it shows itself so rarely, it doesn't really get talked about or addressed.
<shrugs> hope this helps (someone

)
Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit