|
SetMaximumCallbacks Function
|
|
|
Prototype
|
Public Declare Function SetMaximumCallbacks Lib "TclBridge.dll" (ByVal plNewMaximum As Long) As Long
|
|
Input
|
The "plNewMaximum" parameter, which specifies the new maximum number of custom commands that can be registered.
|
|
Output
|
None.
|
|
Returns
|
The new maximum number of custom commands that can be registered or zero upon failure.
|
|
COM Results
|
Not applicable.
|
|
Side Effects
|
None.
|
|
Description
|
None.
|
|
Notes
|
This function must be called before any objects in the library have been created or when the GetObjectCount function returns zero.
The declaration for this function is in the "TclBridgeSupport" (TCLBSUPT.BAS) module.
|
|
Example
|
Private Sub Command1_Click()
' reasonable limit is about 1000000 Call SetMaximumCallbacks(100) MsgBox "Total of " & GetMaximumCallbacks() & " callbacks available.", vbInformation, App.Title End Sub |