Macro substitution
How can i "emulate" a keyword from a String object?
ie.
Image image;
image={load image};
String value = new String("image");
&image.getWidth(null);
The & symbol in my old Visual Fox Pro substitute a keyword. How can i emulate it in Java?
[302 byte] By [
~toki] at [2007-9-26 5:29:51]

Java is not a scripting language, so it has no ability to evaluate or do macro substitutions are runtime.You can look into reflection. Use the java.lang.reflect.Field class to get the value of a field, where the field name is given at runtime.