| |

VerySource

 Forgot password?
 Register
Search
View: 907|Reply: 4

I write junk code every day.

[Copy link]

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-3 15:20:01
| Show all posts |Read mode
Quantity field changes
(1) Judgment:
if adsMaster.FieldByName ('number'). AsFloat <= 0 then exit;
(2) Then judge the unit price:
if adsMaster.FieldByName ('Price'). AsFloat <= 0 then exit;
(3) Then rewrite the amount:
adsMaster.FieldByName ('Money'). AsFloat: = adsMaster.FieldByName ('number'). AsFloat * adsMaster.FieldByName ('Price'). AsFloat;


After the amount is rewritten and then the total amount is triggered, the total amount is calculated again. . . .

Tap this code every day :(
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-3 20:18:01
| Show all posts
Why knock every day? If you do n’t get it in one go, you are not a cashier!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 17:27:01
| Show all posts
Won't you write an automatic code pasting machine?
Reply

Use magic Report

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-1-4 17:48:01
| Show all posts
Why knock every day? If you can't do it once,
---------------------------------
Today's cost accounting. Tomorrow, add a tax rate. The day after tomorrow will add an average depreciation. There are two algorithms for depreciation. The user can choose which algorithm to use. . .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 17:57:01
| Show all posts
Ctrl + C Ctrl + V
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list