CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Unknown # of parameters

    How to write a procedure that will have an unknown number of parameters and will display the each parameter value passed and its data type?

    Is this possible?

    Any help for this beginner very much appreciated.


  2. #2

    Re: Unknown # of parameters

    For the unknown # parameters problem, use a paramarray.

    To display the datatype, use the VarType function.

    See the documentation for more details.

    Charlie Zimmerman
    http://www.freevbcode.com


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

Featured