Вниз
Скачать: CL | DM;

Математические операции   Найти похожие ветки 

 
Denizzz   (2004-08-19 12:19) [0]

Добрый день.

Есть поля
Netto - BCD
Percent - Integer
Netto2 - BCD

По нажатию кнопки должно выполниться следующее вычисление:
Netto2=Netto+Netto*Percent/100
Делаю так:
FMain.Table2.FieldByName("Netto2").AsBCD:=
FMain.Table2.FieldByName("Netto").AsBCD +
FMain.Table2.FieldByName("Netto").AsBCD *
FMain.Table2.FieldByName("Percent").AsInteger/100;

Где ошибка?


 
Соловьев ©   (2004-08-19 12:23) [1]


> Где ошибка?

вот именно - где???


 
Denizzz   (2004-08-19 12:27) [2]

Выдает: "Operator not applicable to this operand type"


 
Соловьев ©   (2004-08-19 12:35) [3]


> FMain.Table2.FieldByName("Netto2").AsBCD:=
> FMain.Table2.FieldByName("Netto").AsBCD +
> FMain.Table2.FieldByName("Netto").AsBCD *
> FMain.Table2.FieldByName("Percent").AsInteger/100;

AsBCD замени на AsFloat



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.022 c
1-1094035424
Wolfram
2004-09-01 14:43
2004.09.19
int в минуты?


4-1091873909
axelrod
2004-08-07 14:18
2004.09.19
А как получить уникальный и воспроизводимый ID коипьютерв


10-1040709267
dvp
2002-12-24 08:54
2004.09.19
Oracle(Solaris) - ? - Client(Windows)


14-1094077026
gn
2004-09-02 02:17
2004.09.19
Я даже не знаю как понимать таких людей


1-1094532933
BillyJeans
2004-09-07 08:55
2004.09.19
override private метода...




   Наверх