Hi there,
When using XLS in french localisation the ROUND function crashed the app
I'm using Delphi 2006 and XLS 3.0
P.S. floating point seem to do that
Localisation
-
- Posts: 3
- Joined: Mon Dec 18, 2006 11:56 am
-
- Posts: 3
- Joined: Mon Dec 18, 2006 11:56 am
Hi there,
Here is the offending lines:
NameAsFormula['Ystar'] := 'NameAsFormula['Ystar'] := 'ROUND((Ltwo*(Czero+Izero+Govt+(Xone*FRinc)-Zzero)-(Ione*(Lzero-Msupp))-(Ltwo*Erate*(Xtwo+Ztwo))),0)/(Ltwo*(1-MPC+(MPC*Trate)+Zone-(Zone*Trate))+(Ione*Lone))'; // Ystar
NameAsFormula['Rstar'] := 'ROUND((Lone*(Czero+Izero+Govt+(Xone*FRinc)-Zzero))+((1-MPC+(MPC*Trate)+Zone-(Zone*Trate))*(Lzero-Msupp))-((Lone*Erate)*(Xtwo+Ztwo)),3)/(Ltwo*(1-MPC+(MPC*Trate)+Zone-(Zone*Trate))+(Ione*Lone))';
If I remove the word ROUND it works in the french and german regional settings (with no rounding, which we need), however it works ok with the word ROUND in english and chinese.
There is no translation from us, the word ROUND is untouched, it can only come from XLS. Any solution or work around would be welcome
Christophe
Here is the offending lines:
NameAsFormula['Ystar'] := 'NameAsFormula['Ystar'] := 'ROUND((Ltwo*(Czero+Izero+Govt+(Xone*FRinc)-Zzero)-(Ione*(Lzero-Msupp))-(Ltwo*Erate*(Xtwo+Ztwo))),0)/(Ltwo*(1-MPC+(MPC*Trate)+Zone-(Zone*Trate))+(Ione*Lone))'; // Ystar
NameAsFormula['Rstar'] := 'ROUND((Lone*(Czero+Izero+Govt+(Xone*FRinc)-Zzero))+((1-MPC+(MPC*Trate)+Zone-(Zone*Trate))*(Lzero-Msupp))-((Lone*Erate)*(Xtwo+Ztwo)),3)/(Ltwo*(1-MPC+(MPC*Trate)+Zone-(Zone*Trate))+(Ione*Lone))';
If I remove the word ROUND it works in the french and german regional settings (with no rounding, which we need), however it works ok with the word ROUND in english and chinese.
There is no translation from us, the word ROUND is untouched, it can only come from XLS. Any solution or work around would be welcome
Christophe