iLogic interface improvement

iLogic interface improvement

Anonymous
Not applicable
300 Views
1 Reply
Message 1 of 2

iLogic interface improvement

Anonymous
Not applicable

Happy Monday all!

I've been doing a lot of iLogic programming the last couple of weeks and had an idea to improve the programming interface. I realize the way I program probably isn't the best technique, however it has been working for me. My code tends to be rather large in size. The one I am working on now is going to end up possibly over 5000 lines of code. (I know, WOW) So my idea is to have the ability to have a tool within the programming interface that will allow you to jump directly to a specific line. Example, I want to go to say line 1674. So in the lower right corner above the "Save & Run" button is the Ln / Col indicator. Click on the "Ln x" and type in the line you want to navigate to and there you go. You are on that line (somewhere in the middle of the programming panel)

   Well that's my thought for the day, Hope you all have a great Monday!

 

Frank

0 Likes
301 Views
1 Reply
Reply (1)
Message 2 of 2

AlexFielder
Advisor
Advisor

Hi @Anonymous,

 

It's not a bad suggestion; you might consider posting it in the Ideas forum. (Anything that makes working in a Rule as large as that is a bonus!)

 

In your specific case I think you might want to refactor that code. I suspect you may find you have whole sections that are identical apart from a few value/name differences. It will make the code easier to maintain, and crucially, update. A good tool for this is an online Diff utility such as:

 

https://www.diffchecker.com/

 

The last time I was given an iLogic rule that ran to 5000+ lines*, I refactored it down to around 1800 using little more than that site.

 

If you need some assistance with it, please reply here and I'll help where I can.

 

*The reason that particular rule ran to that many lines was the lack of any looping whatsoever (For Each Next etc.) and IMHO any rule longer than ~200 lines long really ought to be converted into a .NET add-in.

 

Regards and Thanks,

 

Alex.