PDA

View Full Version : String Condition



Rakesh_mahajan
06-10-2004, 07:13 AM
Hi all,

I am writing a string comparison condition under condition tab of files or dialog..
But i want to know where i have to define string variable so that i can access it globally..



Rakesh

CharlesW
06-10-2004, 11:47 AM
You can use a java system property, or you can use a variable. To set a variable use the following code:

try {

arg0.getServices().getISDatabase().setVariableValue(

"VariableName", "VariableValue");

}

catch (Exception e) {

arg0.getServices().logEvent(this, Log.ERROR, e);

}

This would set the variable named “VariableName” to the value “VariableValue”. If the variable did not already exist, it would be created. “VariableName” could then be resolved using $V(VariableName). Note: this assumes that “arg0” is the name of the argument passed to the event.