+ Reply to Thread
Results 1 to 2 of 2

List parameter options when calling a function

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

    List parameter options when calling a function

    MultiplyClass

    Please Login or Register  to view this content.
    Module1

    Please Login or Register  to view this content.


    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.

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

    Re: List parameter options when calling a function

    Nevermind, worked it out. Here is the solution:

    Multiplyclass

    Please Login or Register  to view this content.
    Module1

    Please Login or Register  to view this content.
    By adding the Enum to my class and changing the parameter datatype to my enum, it works.

    Thanks to me for figuring it out!!

+ Reply to Thread

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