Procedure Attributes - VB6

To set the Procedure ID for a procedure in Visual Basic 6.0, on the Tools menu, select Procedure Attributes. Doing so will bring up the following dialog. The dialog is shown after the Advanced >> key is clicked.

Image

In addition to the items listed in the Procedure ID box - (Default), AboutBox, and Refresh - you can specify that the procedure is an Enumerator Function by manually typing -4 (negative 4) in the box. This apparently is a "magic number" to enable the feature. An Enumerator Function is used in a Collection class to allow an instance of it to be used within a For Each loop.