Subject | Re: [IBO] Lookup list in IBO 4.2Fp |
---|---|
Author | mmenaz |
Post date | 2002-02-02T19:15:01Z |
--- In IBObjects@y..., hans@h... wrote:
this is my foult. Nothing serious at all, since I try to assign the value to a currency variable in a try...except to test if it's in the correct range while the control is working unbound (so limiting the total number of digits you can enter).
I've sent a "patch" to Jason to avoid this, but he is on holiday...
You can do it by yourself:
(IBC_Currency.IMP)
function TIB_Currency.CheckCurrencyOverRange( S : string ) : boolean;
begin
Result := False;
if not Assigned(Field) then
begin
try
StrToCurr(TextToValText(S))
except
Result := True;
end;
end;
end;
Regards
Marco Menardi
> Might be suspicious ... and not ment to happenIBC_Currency.IMP(401); Value assigned to 'wCurrency' never used
>
> IBC_Currency.IMP(401); Value assigned to 'wCurrency' never used
> IBF_Query.pas(2324); Value assigned to 'qualified' never used
>
> =========================================
>
this is my foult. Nothing serious at all, since I try to assign the value to a currency variable in a try...except to test if it's in the correct range while the control is working unbound (so limiting the total number of digits you can enter).
I've sent a "patch" to Jason to avoid this, but he is on holiday...
You can do it by yourself:
(IBC_Currency.IMP)
function TIB_Currency.CheckCurrencyOverRange( S : string ) : boolean;
begin
Result := False;
if not Assigned(Field) then
begin
try
StrToCurr(TextToValText(S))
except
Result := True;
end;
end;
end;
Regards
Marco Menardi