Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

Long Function #281

Closed murilo-s closed 2 months ago

murilo-s commented 2 months ago

Hi,

Is it possible to break the codeline in multiple lines in long functions?

For example, i have this function: image

But to make the code easier to understand and work, I wanted to do something like this: image

But as you can see, the function stops working.

Thanks,

Proektsoftbg commented 2 months ago

Hi, @murilo-s!

This has been requested some time ago and I am almost done with it, but not released yet. You can continue the line by adding " _" and the end.

image

I am not sure this is fully working. If you want, I can send you a beta version to test it and if it is OK, we can release it as 6.2.2.

murilo-s commented 2 months ago

Hey Ned, thats great!

Yes, I would like to test the beta version.

Thanks!

Proektsoftbg commented 2 months ago

Hi, you can download the updated version from this link: https://github.com/Proektsoftbg/Calcpad/blob/main/Setup/calcpad-setup-en-x64.exe

I did not publish it officially yet. Please, try it first to see if it is working. Add " _" (space and underscore) and the end of the line to continue the expression on the next line.

image

murilo-s commented 2 months ago

Great, Ned.. thanks!

I did a quick test here and apparently it is working fine. I'll try a bit more tomorrow.