PRB: Parameter Information ToolTip Is Unavailable for User-Defined Functions (197327)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

To reproduce this behavior, open Visual InterDev 6.0 and do the following:
  1. Create a new ASP page.
  2. 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
          %>
    						
  3. 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.

REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

192146 PRB: Components Not Recognized when Enabling the Scripting Model

191562 BUG: Statement Completion Fails after Changing Case of DTC ID

191046 BUG: IntelliSense Statement Might Not Work with Inline Script

190764 BUG: Intellisense May Indicate Optional Parameters are Required

190676 BUG: Parameter Info Tooltip Does Not Appear

190681 BUG: PageObjectDTC May Publish Wrong Parameter Names


Modification Type:MajorLast Reviewed:4/25/2001
Keywords:kbide kbprb KB197327