VB.net Get Variable names that can be passed into a procedure

Is it possible to get the variable names of variables that can be passed into a procedure. So in the two following examples return
"oTo,oCc,oSubject,oBody,oAttachment" for "oSendEmail" and "oLine,oChartType" from "oInsertChart" (based on  the following two procedures)

Public Sub oSendEmail(ByVal oTo As String, ByVal oCc As String, ByVal oSubject As String, ByVal oBody As String, ByVal oAttachment As String)

  Public Sub oInsertChart(ByVal oLine As Integer, ByVal oChartType As String)
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The parameter names in the subroutine definition are local to the subroutine, and are not available (or useful) elsewhere. What are you trying to do with them?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
I am trying to use them in a GUI so the user can run certain operations by specifying  the input variables
Are you asking the user to tell you what the internal variable names are? What would they be able to do if they knew that
Public Sub oInsertChart has two parameters that need to be passed it and that internally they are called oLine and oChartType that you don't want them to be able to do if they want to run that subroutine passing it a 1 and "fred" as the two parameters
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
I want the user to see as if they were calling the procedure while typing code...except from a form
So you want to mimic the intellisense that an IDE provides? I think that you would need to hard code that as I'm not aware of any way to look those up from within an exe.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You learn something new every day, I'd not heard of the system.reflection namespace.
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much. Great answer!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.