Results 1 to 2 of 2

List parameter options when calling a function

Threaded View

  1. #1
    Registered User
    Join Date
    07-05-2006
    Posts
    59

    List parameter options when calling a function

    MultiplyClass

    Function Multiply(number As Integer)
        Debug.Print number * 2
    End Function
    Module1

    Option Explicit
    
    Public Test As MultiplyClass
    
    Public Sub TestClass()
        Set Test = New MultiplyClass
        Test.Multiply (2)
    End Sub


    The above example (a much smaller representation of my code) prints 4 to the immediate window. What I'd like to do is set the code up to inform the user values of 2, 4, & 6 should be passed (intellisense?).

    I tried to use Enum, but was unsuccessful. If someone could help that would be great.
    Last edited by Kaziglu Bey; 01-18-2013 at 02:37 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1