This compiler error will occur if there is no matching endswitch keyword following an switch block.
For example:
begin
nTemp = WeekdayOf(n_TokenDate)
switch nTemp
case 1
sRESULT = '1'
case 2
sRESULT = '2'
end
To prevent this type of errors, always use the method of writing skeleton blocks when using block structures.
Topic 109611, last updated on 18-Apr-2020