| |

VerySource

 Forgot password?
 Register
Search
View: 840|Reply: 5

Rookie ask

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

Post time: 2020-1-9 11:00:01
| Show all posts |Read mode
I'm practicing an inventory system, I want to set a function is
Out of stock alert when goods reach the minimum set quantity
I wrote such a piece of code, it compiles without errors, but it doesn't show up


int sum;
     sum == Table3-> RecordCount;
     do
     {
     Label14-> Caption = ("Out of stock !!!");
    } while (sum <= 10);
Reply

Use magic Report

0

Threads

16

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-10 07:27:02
| Show all posts
If sum <= 10, of course, there is no prompt, and while is necessary? ?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

 Author| Post time: 2020-1-11 03:00:02
| Show all posts
How can we change it? Please advise, I am a beginner
Reply

Use magic Report

0

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-26 01:00:02
| Show all posts
1. Feeling that while is not necessary
2.sum == Table3-> RecordCount;
Then sum = 1 or = 0, are you writing it wrong? It should be =

int sum = Table3-> RecordCount;
if (sum <= 10)
         Label14-> Caption = ("Out of stock !!!");
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-30 18:27:01
| Show all posts
You wrote your terms wrong
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-1 21:09:01
| Show all posts
Agree withfreedomsoli, on time! !!
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