Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
support CMD characters
#1
Hi,

It would be much more convenient if QM3 could support CMD characters

CMD symbols, used only when testing in the QM3 editor, Invalid when passing arguments through the command line
#if !CMD
#endif


Linqpad supports this format

C# code:
void Main(string[] args) {
#if !CMD
    args = new[] {
        @"C:\Users\Administrator\Desktop\hello.txt",
        "hello, world!"
    };
#endif
    
    string file = args[0];
    string text = args[1];
    File.WriteAllText(file, text);
}


Messages In This Thread
support CMD characters - by Davider - 08-14-2022, 05:15 AM
RE: support CMD characters - by Gintaras - 08-14-2022, 06:35 AM
RE: support CMD characters - by Gintaras - 08-14-2022, 07:46 AM
RE: support CMD characters - by Davider - 08-14-2022, 08:06 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)