'there is' anomaly
Jim Ault
JimAultWins at yahoo.com
Wed Aug 16 11:21:36 EDT 2006
On 8/16/06 12:26 AM, "Paul Kocsis" <pkocsis at cox.net> wrote:
> Obviously, my handler is written to not attempt to delete a group if the
> 'there is' fails....so how is it conceivable that I could get this execution
> error????
<detailed message below>
Not the real answer to your question, but another approach that may avoid
any error message in the standalone. Version 4 would be my choice.
---ver 1---------
> on trydelete2 pgrp
try
> if there is a group pgrp then
> delete group pgrp
> end if
end try
> end trydelete2
---ver 2---------
> on trydelete2 pgrp
try
> if there is a group pgrp then delete group pgrp
end try
> end trydelete2
---ver 3---------
> on trydelete2 pgrp
try
> delete group pgrp
end try
> end trydelete2
---ver 4---------
--one line of visible code, obvious meaning, no function call
try; delete group pgrp;end try
Jim Ault
Las Vegas
On 8/16/06 12:26 AM, "Paul Kocsis" <pkocsis at cox.net> wrote:
> I have a handler in a mainstack card script:
>
> on trydelete2 pgrp
> if there is a group pgrp then
> delete group pgrp
> end if
> end trydelete2
>
> Once in a great while, my standalone will error with the following error
> text:
>
> Executing at 1:01:03 AM on Wednesday, August 16, 2006
> Type: delete: can't find object
> Object: card "card id 1002" of stack "C:/MultiMediaApp/MultiMediaApp.exe"
> Line: if there is a group pgrp then
> Line Num: 0
> Hint: trydelete2
>
> Obviously, my handler is written to not attempt to delete a group if the
> 'there is' fails....so how is it conceivable that I could get this execution
> error????
>
> Any ideas??
>
> Paul Kocsis
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list