12-03-2020, 11:34 PM
call like this need two single quotes for other arguments besides 1st.
for the MesssageBox use Composite formatting:
for the MesssageBox use Composite formatting:
str cstname ="Mark"
str output
output.from("Customer:" cstname)
CsExec("" F"/SampleFunction ''{output}''")
#ret
//C# code
using System;
using System.Windows.Forms;
class SampleFunction
{
,static void Main(string[] args)
,{
,,int i; for(i=0; i<args.Length; i++) Console.WriteLine(args[i]); //display in QM output
,,// Composite formatting:
,,MessageBox.Show(String.Format("Hello:{0}", args[1]));
,,Console.WriteLine("Hello:{0}", args[1]);
,}
}