Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatically convert and include scripts when generating the exe
#11
I find it inconvenient to add parameters for debugging in the classFile role, whereas scripting in the miniProgram role is much more convenient.

I have an idea: add a button to the toolbar to switch between the two roles, making it easier to debug functions in the class

For example:
Clicking the button for the first time sets the script role to miniProgram, resulting in the following code:

/*/ role miniProgram; /*/

static class TaskB
{
    static void Main()
    {
        Thread(5);
    }
    
    public static void Thread(int x)
    {
        dialog.show(null, $"TaskB, x={x}");
    }
}
_______________________________________________________________________________________________________
Clicking the button for the second time sets the script role to classFile, resulting in the following code:

static class TaskB
{
    static void _Main()
    {
        Thread(5);
    }
    
    public static void Thread(int x)
    {
        dialog.show(null, $"TaskB, x={x}");
    }
}


Messages In This Thread
RE: Automatically convert and include scripts when generating the exe - by Davider - 03-31-2024, 12:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)