| |

VerySource

 Forgot password?
 Register
Search
View: 832|Reply: 8

Data transfer between three forms, online, etc.

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-27 10:40:01
| Show all posts |Read mode
I designed three forms, and there is a class in the third form. This class needs to get the ID number from the first form and the name value from the second form. Wait online
Reply

Use magic Report

0

Threads

46

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 United States

Post time: 2020-2-19 22:45:01
| Show all posts
Use a static member of the third class
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-23 17:00:02
| Show all posts
Attributes
Reply

Use magic Report

0

Threads

110

Posts

63.00

Credits

Newbie

Rank: 1

Credits
63.00

 China

Post time: 2020-2-24 11:15:01
| Show all posts
What is the relationship between the three forms?
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-3-1 09:00:02
| Show all posts
The first form is the parent form, the second is the child form, and the third is the value of the two forms. It doesn't matter much.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-2 00:15:01
| Show all posts
This is a design issue. Forms that do not have much relationship should be independent of each other and should not appear to be interdependent.
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-2 09:30:02
| Show all posts
How is the third form displayed? Or where is the job to display the third form
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2020-3-2 10:45:01
| Show all posts
But generally use parameters or constructors to pass parameters between forms.
Reply

Use magic Report

0

Threads

110

Posts

63.00

Credits

Newbie

Rank: 1

Credits
63.00

 China

Post time: 2020-3-3 00:00:01
| Show all posts
There are many methods for passing values ​​between forms, and the specific use should be selected according to actual needs ..
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