When create a new language doc with not defined key "outDlgLang" i have following bug:
after change language to it, i can't change language to any other.
I think it happens, because before dialog is openinig, its title is searching in "outDlgLang" key, and so
when this key not defined, error comes.
The problem can be solved, by adding @IsError checking.
E.g.
REM { find label };
key:="outDlgLang";
LABEL := @Implode(@DbLookup( "" : "NoCache" ; "":"" ; "($LULANGTYPE)" ;language + "~OUTLINE";"typestring");";");
defaultvalue := "Select language";
REM {After this row added, error no happens};
@If(@IsError(LABEL); val := defaultvalue; val:=@Right(LABEL; key + "="));