What is the use of UpdateData funciton ?
Answers were Sorted based on User's Feedback
Answer / suyambu
UpdateData function is used to get or set the values in
your appropriate control variables. UpdateData ( FALSE )
would update the data from control variables to control,
while UpdateData ( TRUE ) would assing the data from
controls to control variable.
This function need not be called if you are using DDX (
Dynamic Data Exchange ).
Is This Answer Correct ? | 46 Yes | 5 No |
Answer / manish
UpdateData() by default it has argument "TRUE": UpdateData
(TRUE)This Function is used in Do data exchange. UpdateData
(TRUE) transfer the control value to a variable .
UpdateData(FALSE) transfer the variable value to control to
display at presentation layer.
Is This Answer Correct ? | 11 Yes | 2 No |
Answer / suman
answer #2 is different from 1 & 3
which is correct?
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / rainz
The use of this function is to initialize data in a dialog box, or to retrieve and valid the same data.
Before the dialog is visible, the UpdateData (bSaveAndValidate) ,has bSaveAndValidate set as False(dialog initialization),but as soon as the "OK" button code gets executed "bSaveAndValidate" is set to true.(data retrieval)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suresh
UpdateData(): By default the parameter is FALSE; Which means
it is transfering the variables to controls;
UpdateData(TRUE): data Flowing from controls to varibles;
Is This Answer Correct ? | 11 Yes | 13 No |
Answer / arvin
BOOL UpdateData( BOOL bSaveAndValidate = TRUE );
UpdateData(TRUE) indicate dialog box is being initialized
UpdateData(FALSE) indicates data is being retrieved from the
dialog box.
Call this member function to initialize data in a dialog
box, or to retrieve and validate dialog data.
Is This Answer Correct ? | 10 Yes | 20 No |
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
How we can findout Memoryleaks, In what way it can be avoided
i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required
How can we create thread in MFC framework?
19)how to set Back Ground Picture to a Dialog Box in MFC ?
How you find memory leaks?
what are the feauters of CObject
1) create ToolTip in MFC?
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
Differ GetMessage, PostMessage & PeakMessage?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
What is the range of intensity of RGB