Microsoft KB Archive/197327

= PRB: Parameter Information ToolTip Is Unavailable for User-Defined Functions =

Article ID: 197327

Article Last Modified on 4/25/2001

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q197327



SYMPTOMS
When calling user-defined VBScript functions in an Active Server Pages (ASP) page within Visual InterDev 6.0, the Parameter Information ToolTip provided by IntelliSense is unavailable for the function parameters.



CAUSE
This behavior is caused by the use of the Public or Private modifiers in the function declaration.



RESOLUTION
Do not use the Public or Private modifiers in a function declaration. Since all functions and sub-routines are globally available during an ASP page's execution, the use of the Public and Private modifiers are unnecessary, so they can safely be removed.



Steps to Reproduce Behavior
To reproduce this behavior, open Visual InterDev 6.0 and do the following:  Create a new ASP page.  Copy and paste the following code into the page: <%        Public Function PublicFunc(ByVal foo) 'code here End Function

Function Func(ByVal foo) 'code here End Function %>                        Within the ASP delimiters type the following:

Call PublicFunc(



Notice that the Parameter Information ToolTip did not appear for the function parameters. Now type the following:

Call Func(

The Parameter Information ToolTip should appear for the function.

