PRB: Parameter Info Unavailable for User-Defined Functions

ID: Q197327


The information in this article applies to:


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:

Q192146 PRB: Components Not Recognized when Enabling the Scripting Model

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

Q191046 BUG: IntelliSense Statement Might Not Work with Inline Script

Q190764 BUG: Intellisense May Indicate Optional Parameters are Required

Q190676 BUG: Parameter Info Tooltip Does Not Appear

Q190681 BUG: PageObjectDTC May Publish Wrong Parameter Names


Keywords          : kbVisID600 kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 7, 1999