Hi All,
I have inherited some code from an old colleague, at the moment it runs 12 different procedures but they are separated by country (I.E. 3 for country A, 3 for country B and 3 for country C).
Two current issues........
The code is 2800 lines (Not large I know).
1. As the procedures are very similar, when making changes I get confused with which country I'm making the amendments for. I find myself making a change in the wrong place. This is slowing me down and I've got to run testing for all countries in case changes have been made to the incorrect procedure.
2. I've got to a minimum of 4 other countries to add... taking my total number of procedures to 28 and increasing the number of lines in the code to 5000.
Due to the reasons mentioned above I think the best way for me to proceed is to separate the procedures into include files by country. I will know I'm making the change in the correct place and reducing my testing.
I'm aware this will be tedious when compiling the code....
I know how to call a include file and run it, what I'm struggling with is calling a include file but only running 1 of the three procedures in it. How do I specify the code to run procedure 3 in the include file. I do not want 28 include files....
I'm not set on stone on the above approach, so any advice or thoughts are welcome.
Thanks
I have inherited some code from an old colleague, at the moment it runs 12 different procedures but they are separated by country (I.E. 3 for country A, 3 for country B and 3 for country C).
Two current issues........
The code is 2800 lines (Not large I know).
1. As the procedures are very similar, when making changes I get confused with which country I'm making the amendments for. I find myself making a change in the wrong place. This is slowing me down and I've got to run testing for all countries in case changes have been made to the incorrect procedure.
2. I've got to a minimum of 4 other countries to add... taking my total number of procedures to 28 and increasing the number of lines in the code to 5000.
Due to the reasons mentioned above I think the best way for me to proceed is to separate the procedures into include files by country. I will know I'm making the change in the correct place and reducing my testing.
I'm aware this will be tedious when compiling the code....
I know how to call a include file and run it, what I'm struggling with is calling a include file but only running 1 of the three procedures in it. How do I specify the code to run procedure 3 in the include file. I do not want 28 include files....
I'm not set on stone on the above approach, so any advice or thoughts are welcome.
Thanks