Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Bug reports
➜ deleteTriggerGroup doesn't return number of trigs deleted?
|
deleteTriggerGroup doesn't return number of trigs deleted?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Sleeve
(31 posts) Bio
|
| Date
| Sat 09 Nov 2002 07:15 PM (UTC) Amended on Sat 09 Nov 2002 07:16 PM (UTC) by Sleeve
|
| Message
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 09 Nov 2002 07:52 PM (UTC) |
| Message
| 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")
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Sleeve
(31 posts) Bio
|
| Date
| Reply #2 on Sat 09 Nov 2002 09:23 PM (UTC) |
| Message
| | 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. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,180 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top