Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Interpolation
#4
call like this need two single quotes  for other arguments besides 1st.
Code:
Copy      Help
CsExec("" F"/SampleFunction ''{output}''")

for the MesssageBox use Composite formatting:
Code:
Copy      Help
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]);
,}
}


Messages In This Thread
String Interpolation - by csonon - 12-03-2020, 04:49 PM
RE: String Interpolation - by Gintaras - 12-03-2020, 05:22 PM
RE: String Interpolation - by csonon - 12-03-2020, 05:26 PM
RE: String Interpolation - by Kevin - 12-03-2020, 11:34 PM
RE: String Interpolation - by csonon - 12-04-2020, 01:19 AM
RE: String Interpolation - by Kevin - 12-04-2020, 01:28 AM
RE: String Interpolation - by Gintaras - 12-04-2020, 06:55 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)