Solved

Java version of vba's - Run('Function', startParams)

Posted on 2008-10-29
4
314 Views
Last Modified: 2012-05-05
Hi all

In vba it is possible to call a function via the Run('Function', startParams) command where 'Function' is a string variable containing the name of a function to be run.

Is it possible to do this in java? I.E. i want to be able to create a method that takes in a string of the name of the method to call and calls this one!

Thanks in advance
0
Comment
Question by:billyleo
  • 3
4 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 22833189
Yes by "reflection".

;JOOP!
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 500 total points
ID: 22833199
0
 

Author Closing Comment

by:billyleo
ID: 31511273
Thanks - had come to that solution myself, not looking forward to it though!
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 22833638
:))
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now