Results 1 to 2 of 2

Thread: Include a public enum in a function signature?

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    Include a public enum in a function signature?

    How can I include the Date.DayOfWeek public enumeration in a function signature (without creating my own duplicate enumeration)?

    For example, I want to do something like:
    VB Code:
    1. Public Function DoSomething(ByVal dteDate As Date, ByVal Date.DayOfWeek As enum, ....

  2. #2

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    Solved

    I solved this using:
    VB Code:
    1. ByVal DayOfWeek As System.DayOfWeek

    Sorry for the post - should have thought about it a bit longer

Posting Permissions

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



Click Here to Expand Forum to Full Width