| |

VerySource

 Forgot password?
 Register
Search
View: 20|Reply: 14

How to clear the contents of Memo completely?

[Copy link]

1

Threads

3

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-3-7 15:00:01
| Show all posts |Read mode
How can the content in Memo be completely cleared, that is to say, the content of the last run will no longer be displayed in the next run.
I made a display box, but after clearing each time, I run another file again, and there are still some contents displayed in the last run, such as the first run:
0 CONST A ADR = 1 LEVEL = 0 SIZE = 6
1 VAR A ADR = 3 LEVEL = 0 SIZE = 0
2 VAR B ADR = 4 LEVEL = 0 SIZE = 0
3 VAR C ADR = 5 LEVEL = 0 SIZE = 0

When running another file for the second time after clearing, it is displayed as follows:
0 CONST D ADR = 1 LEVEL = 0 SIZE = 4
1 VAR D ADR = 3 LEVEL = 0 SIZE = 0
2 VAR B ADR = 4 LEVEL = 0 SIZE = 0
3 VAR C ADR = 5 LEVEL = 0 SIZE = 0
But among them
2 VAR B ADR = 4 LEVEL = 0 SIZE = 0
3 VAR C ADR = 5 LEVEL = 0 SIZE = 0
Two are missing from the second file,
I want to know how to clear it up? Is it clearing the cache? If so, what should I do? Thank you!
Reply

Use magic Report

0

Threads

20

Posts

20

Credits

Newbie

Rank: 1

Credits
20

 China

Post time: 2020-5-26 02:30:01
| Show all posts
Memo1-> Clear ();
Reply

Use magic Report

1

Threads

3

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-5-26 14:00:01
| Show all posts
Reply

Use magic Report

1

Threads

3

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-5-26 14:15:01
| Show all posts
Memo-> Clear (); can't be completely cleared, there are still two after running
Reply

Use magic Report

0

Threads

40

Posts

29

Credits

Newbie

Rank: 1

Credits
29

 United States

Post time: 2020-5-26 21:00:01
| Show all posts
Should be a problem with your code
Memo1-> Clear () should be deleted
Reply

Use magic Report

0

Threads

20

Posts

20

Credits

Newbie

Rank: 1

Credits
20

 China

Post time: 2020-5-27 12:45:01
| Show all posts
It is not a problem of Clear ();
Reply

Use magic Report

0

Threads

5

Posts

25

Credits

Newbie

Rank: 1

Credits
25

 China

Post time: 2020-5-28 17:13:47
| Show all posts
Memo1-> lines-> Clear ()
Reply

Use magic Report

0

Threads

14

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-6-9 13:30:03
| Show all posts
Clear() was originally used for clearing. Clearing is not your code problem. I don't believe in trying to create a new project.
Reply

Use magic Report

0

Threads

11

Posts

11

Credits

Newbie

Rank: 1

Credits
11

 China

Post time: 2020-7-11 14:00:01
| Show all posts
clear() can definitely be emptied, you can see step by step
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-7-27 02:00:02
| Show all posts
Memo1->Clear();//Clear
  memo->items->Add(...)//Add
memo->clear() or memo->items->clear()
  I haven't used it for a long time, I forgot
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list