Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compile and run C# code string sent from QM to the LA HTTP server
#19
thank you so much, I have learned a lot about LA!!!

I put the code into the class file "HSFun_Temp" It runs well.

But, I would like to write the code in the QM script for future convenience.
So now, can achieve the goal via the following method?  What are the restrictions?

Macro Macro10
Code:
Copy      Help
_s=
;static partial class Functions {     
;,public static string Main2(string name) {
;,,string r = $"hello {name}";
;,,Console.WriteLine(r);
;,,return r;
;,}     
;}

;Todo:
;Write the  _s variable text to the class file "HSFun_Temp" in LA.

_s=LaHttpCall("Main2" "name=Lisa"); out _s

It would be great if this feature can be implemented, as there are many other possibilities for it.


Messages In This Thread
RE: Call C# functions from anywhere using URL (HTTP server) - by Davider - 06-21-2023, 12:36 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)