| |

VerySource

 Forgot password?
 Register
Search
View: 2069|Reply: 19

dbedit calculation problem

[Copy link]

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-1 09:40:02
| Show all posts |Read mode
Is the calculation of dbedit the same as edit?
dbedit3.Text: = floattostr (strtofloat (dbedit1.Text) * strtofloat (dbedit2.Text));
The error is `` 丨 is not a valid floating point value
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-12 22:00:02
| Show all posts
empty? The landlord can first see if the text is not empty yet. . . showmessage (trim (dbedit.text))
Reply

Use magic Report

0

Threads

17

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-3-12 23:45:02
| Show all posts
Replace dbedit3 with edit
Reply

Use magic Report

0

Threads

17

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-3-13 08:45:01
| Show all posts
The first floor is right
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-13 14:15:01
| Show all posts
Hmm is empty, how can I make him non-empty?
Reply

Use magic Report

0

Threads

17

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-3-15 13:15:02
| Show all posts
Add 0 in
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-18 13:00:01
| Show all posts
No wow, I wrote it in the onchange event of edit2
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-20 05:15:02
| Show all posts
If it is empty, just let it be 0.
Reply

Use magic Report

0

Threads

53

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-3-21 04:00:01
| Show all posts
That's also simple. Before you execute this paragraph, you first judge whether 1 and 2 are null values. If there is one, the value of 3 is 0. If you don't, then it's calculated.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-21 10:15:01
| Show all posts
I have formcreat let edit1,2,3 be 0, and showmessage is still empty when I open the window.
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