deleteTriggerGroup doesn't return number of trigs deleted?

Posted by Sleeve on Sat 09 Nov 2002 07:15 PM — 3 posts, 13,562 views.

#0
I was having some problems with deleteTriggerGroup so I wanted to take a look at how many triggers are being deleted, and according to the function description for deleteTriggerGroup:

"For debugging purposes the function returns a count of the number of members deleted. eg."

... but whenever I try to add this line:

mycount = world.deleteTriggerGroup "TEST"

... or this:

world.note "DELETED " & world.deleteTriggerGroup "TEST"

I get an error that says "Expected end of statement." Any ideas as to what I'm doing wrong, I can't seem to figure it out. Thanks.
Amended on Sat 09 Nov 2002 07:16 PM by Sleeve
Australia Forum Administrator #1
This isn't a bug, it is simply that in VB, when you want to get a value from a function call, and that function call has arguments, you must put them in brackets. eg.


mycount = world.deleteTriggerGroup ("TEST")

or

world.note "DELETED " & world.deleteTriggerGroup ("TEST")
#2
Thanks Nick. Sorry about posting this in the Bug Reports section, I meant to post in general but forgot I was reading the Bug Reports section at the time.