Name
Remove —
objCounter
.Remove(
strCounterName
)
Synopsis
Removes a counter from the Counters component and deletes its entry from the Counters.TXT file. This method has no return value.
Parameters
-
strCounterName
A string that represents the name of the counter variable you wish to remove. This name can contain any Unicode character.
Example
The following example demonstrates the use of the Remove method of
the Counters object. This example assumes a Counters object
(gobjOptionCounter
) has been instantiated
elsewhere.
<% ' The following code removes the FavGameCounter_Wolf3D ' counter from the gobjOptionCounter object. gobjOptionCounter.Remove("FavGameCounter_Wolf3D") %>
Notes
See the explanation of the Get method earlier in this chapter.
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.