Tg scripting errur

hi MS users I get this syntax

any advice?