Just had a thought that it may be the way I'm getting to the epilog.
Background:
I have a lot of files to load, they all have the same structre from a variety of arcole ledgers. Whilst they have the same structure for some reason only known to a wiser person than me some of the files arrive with the data with a "." as the decimal separator and some with a "," as a seprator. I've tried to get ths fixed at source but with no luck.
Sooo... I need to take a look in each file to see if the data is , or . separated
I do this in the Data tab with the following code.
Code: Select all
If ( Scan ( '.', DebitStr)>0 % Scan ('.', CreditStr)>0);
DecimalSep='.';
Suf='stop';
ProcessBreak;
ElseIf ( Scan ( ',', DebitStr)>0 % Scan (',', CreditStr)>0);
DecimalSep=',';
Suf='comma';
ProcessBreak;
EndIf;
The ProcessBreak takes me to the epilog (see the code above) where I call the process that is set up with a , or . separator.
I'm thinking that becuase I am ProcessBreaking out of the If statement above the next one is breaking? This doesn't help me very much but at least I can understand what is happening....
(FYI I could not get the TI variable where you set the decimal separator to work, hence the need for the If statement in the epilog).