Get value from NumericUpDown

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Re: Get value from NumericUpDown

Postby Jeffsg605 » Sat Jan 12, 2019 11:02 pm

When I try to run the macro in UCCNC, I just get the message that there was an error with the program. I don't recall exactly what it said but it was not very informitive. When I comment out that line, it runs fine.
Jeffsg605
 
Posts: 16
Joined: Fri Jan 11, 2019 5:20 pm

Re: Get value from NumericUpDown

Postby cncdrive » Sat Jan 12, 2019 11:12 pm

Is it a compile error or an exception thrown?
If it is a compile error then you can also check the error text file in the profile/macros folder, it is always created and written by the UCCNC when a compile error of a macro happens.
The UCCNC prints the .NET compiler error message in that file which can give you some ideas about what the problem was.
cncdrive
Site Admin
 
Posts: 4888
Joined: Tue Aug 12, 2014 11:17 pm

Re: Get value from NumericUpDown

Postby Jeffsg605 » Sat Jan 12, 2019 11:49 pm

Interesting, I did not know that. I'll check it out Monday as well. Thank you!
Jeffsg605
 
Posts: 16
Joined: Fri Jan 11, 2019 5:20 pm

Re: Get value from NumericUpDown

Postby cncdrive » Sun Jan 13, 2019 12:05 am

One more thing is that in the latest test version 1.2108 you can also redirect that message to the console, you just have to enable the console plugin and then you can quickly read the error message on the console plugin screen. Then you do not have to open the error file again and again.
And you can also Console.Writeline to the console from macros and plugins which is a handy feature for macros and plugins developments. :)
The console plugin just catches the stdout (standard output) of the application, so everything you write onto the stdout in the app you can read on the console plugin window.
cncdrive
Site Admin
 
Posts: 4888
Joined: Tue Aug 12, 2014 11:17 pm

Re: Get value from NumericUpDown

Postby Jeffsg605 » Sun Jan 13, 2019 12:45 am

Good to know, I appreciate it!
Jeffsg605
 
Posts: 16
Joined: Fri Jan 11, 2019 5:20 pm

Previous

Return to Macros

Who is online

Users browsing this forum: No registered users and 1 guest