OpenVariable node = getVariable(varname.trim());
if (node!=null)
{
if (vsobject instanceof VSDouble && node.value instanceof Double)
{
VSDouble v = (VSDouble)vsobject;
node.value = new Double(v.getValue());
result=true;
}
else
if (vsobject instanceof VSString && node.value instanceof String)
{
VSString v = (VSString)vsobject;
node.value = new String(v.getValue());
result=true;
}
else
if (vsobject instanceof VSBoolean && node.value instanceof Boolean)
{
VSBoolean v = (VSBoolean)vsobject;
node.value = new Boolean(v.getValue());
result=true;
}
}
notifyAllElements(varname);