Hi,
For all people who want clean programming but do not want to put in loads of text
If you compile
Form.runmodal(form::form1)
OR
Form.runmodal(form::"1")
It will generate
Form.runmodal(form::"Company Information")
Same goes for reports and dataports etc.
Optionstrings:
SalesLine.Type := SalesLine.Type::"2";
Makes
SalesLine.Type := SalesLine.Type::Item;
After compiling
Thanks to Alain Krikilion for the form::"1" tip
Comments
Compiler makes:
or also
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Optionfield = Salesperson/Team,Class,Main Group,Material Group,Info Group,Item
VarOpt := Optionfield::S;
VarOpt := Optionfield::c;
VarOpt := Optionfield::"Mai";
VarOpt := Optionfield::"Mat";
VarOpt := Optionfield::"in";
VarOpt := Optionfield::"it";
Regards