Firstly create an agent , properties are ‘Action Menu Selection’ and Target is ‘None’.
Agent Code is
@Command([EditGotoField];“FieldName”);
len := @Text(@Length(FieldName));
@Command([EditRight];len)
From your ui-interface(Form):
@SetField(“FieldName”;“Hello World”);
@Command([ToolsRunMacro];“Agent Name”);
Agent will see the field as ‘is’ after @setfield statement not as ‘was’ before the @setfield statement