long result;
result = VTIL_EditStringValue (VT, 301, "text", 2000);
switch (result)
{
case 0: TestStepPass(); break;
case -2102: TestStepFail("Invalid object!"); break;
case -2104: TestStepFail("Currently there is no active Working Set!"); break;
case -2106: TestStepFail("Currently there is no active Data or Alarm mask!"); break;
case -2115: TestStepFail("VT works in passiv mode therefore you cannot select objects!"); break;
case -2117: TestStepFail("Failed to open object for editing!"); break;
case -2118: TestStepFail("Object is no Input String object!"); break;
case -2120: TestStepFail("Failed to edit object because it is disabled!"); break;
case -2121: TestStepFail("Button is not available in the current context!"); break;
default: TestStepFail("Unexpected error!"); break;
}