Home > database >  The use of the original concept of the open issues
The use of the original concept of the open issues

Time:09-22

Masters,
Open (w_employee)
And
W_employee lw_win
Open (lw_win)
What is the difference between these two kinds of writing?

CodePudding user response:

No difference, and simply view, behind only some cases will use
99% is in the front

CodePudding user response:

1. Open (w_employee)
2. W_employee lw_win
Open (lw_win)

A big difference,
The second open Windows cannot direct reference, because it can open a lot of the same window

CodePudding user response:

I understand, so when you create a new window, the window is already declared a global variable.
W_employee w_employee;
Of course, you can also
W_employee lw_win
Types are the same, only is a local one is global, don't know understand it right?

CodePudding user response:

The second floor of the right, the first writing can only open a window, the second of writing can open many of the same window, what is the principle behind them? Why is this?

CodePudding user response:

There's a difference, although look effect on the difference is not big, but meaning is not the same as
1.
Open (w_employee)

Pb will find w_employee first class definition, and then automatically instantiates an instance of the same name, then open, such as variable names are the same, at the same time can only open a name for the w_employee window instance


2.
W_employee lw_win
Open (lw_win)

Pb will find w_employee first class definition, and then a lw_win variables, according to a statement from w_employee open will instantiate an instance lw_wind,

CodePudding user response:

Which floor above made it very clear the oh, sit down sofa,

CodePudding user response:

The
reference 5 floor response:
there's a difference, although look effect on the difference is not big, but meaning is not the same as
1.
Open (w_employee)

Pb will find w_employee first class definition, and then automatically instantiates an instance of the same name, then open, such as variable names are the same, at the same time can only open a name for the w_employee window instance


2.
W_employee lw_win
Open (lw_win)

Pb will find w_employee first class definition, and then according to the...



3, add
If it is through the database to configure which window open, and a variable way open the best, of course, define a window lw_win
Through
Open (lw_win, your window name)
This way to open and flexibility will be better

CodePudding user response:

You can think
The first open only one instance
The second can open several instances

CodePudding user response:

The fifth floor is clear.
Open multiple words have open multiple benefits. For example, QQ chat window can be more, not to close the original when chatting with another.
Open only one word, also has its benefits.
Different purposes.
  • Related