property is not an interger?

Howard Bornstein bornstein at designeq.com
Tue Jul 6 10:26:24 EDT 2004


On Jul 2, 2004, at 2:03 PM, Rich Lague wrote:

> I can't seem to get the script below to work. When I try to examine it
> with the debugger I get, "Error description: Object: property is not an
> integer"
>
> Is there some way to tell what property is the problem?

You need to specify which card to delete. Simply add "i" after the 
delete card command:

on tryAgain
   repeat with i = the number of cards down to 1
     if the number of card i > 1 then
       delete card i
     end if
   end repeat
end tryAgain


Regards,

Howard Bornstein
-----------------------
D E S I G N   E Q
www.designeq.com


More information about the use-livecode mailing list