Call

Call Prog

Migrated Code Examples:

Simple Call program / Subtask

new CalledProg().Run();
Create<ICalledProg>().Run();
new SubTask().Run();
new SubTask(this).Run();
Cached<SubTask>().Run(); 

We recommend new for in project calls, Create for cross project calls and Cached when using KeepViewVisibleAfterExit or when the called controller constructor is expensive (for example, an inner class with complicated report sections.)

Call program with Arguments

new CalledProg().Run("AAA", v_Num1); 

Using Result

var tempFormat = ReturnVal.Format;
ReturnVal.Format = "";
new CalledProg2().Run("AAA", 5);
ReturnVal.Format = tempFormat; 

Using Form

new Browse_TableA().Run(view: new Views.CallForm(this)); 

Using Lock

 LockCurrentRow();
 new CalledProg().Run(TableA.Code); 

See also:
LockCurrentRow Method for UIController
LockCurrentRow Method for BusinessProcess


Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com