03-31-2024, 12:25 PM
Use code like in the last chapter of https://www.libreautomate.com/editor/Cla...jects.html
Then the class file must be not in a project.
In script Example100.cs add /*/ c ClassHH.cs; /*/
Then the class file must be not in a project.
// class "ClassHH.cs"
/*/ role miniProgram; define TEST; /*/
#if TEST
TaskB.Thread(5);
#endif
static class TaskB
{
public static void Thread(int x)
{
dialog.show(null, $"TaskB, x={x}");
}
}
In script Example100.cs add /*/ c ClassHH.cs; /*/