Simplify a source code filled with overlays of "if"

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Gillesbop
Posts: 23
Joined: August 11th, 2016, 3:22 am

Simplify a source code filled with overlays of "if"

Post by Gillesbop »

Hello Everyone !

please, will it not be possible to simplify the code of this application?

It seems really long. I'm sure there is a faster way to shorten it ...

Thank you for helping me !
Attachments
If overlays.rar
(7.76 KiB) Downloaded 210 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Simplify a source code filled with overlays of "if"

Post by josh »

I would normally use a lookup file for a case like this. Check out chapter 6 of the workshop materials: http://www.csprousers.org/resources/CSP ... rkshop.pdf There is a section on dynamic value set from a lookup file. You can download the working example here: http://www.csprousers.org/resources/CSP ... erials.zip. There is more complicated example with multiple levels of geography at this post: http://www.csprousers.org/forum/viewtop ... 625&p=8678
Post Reply