Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the use of UpdateData funciton ?

Answers were Sorted based on User's Feedback



What is the use of UpdateData funciton ?..

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

What is the use of UpdateData funciton ?..

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

What is the use of UpdateData funciton ?..

Answer / praveen

All 3 are correct. answer #2 is an abstract.

Is This Answer Correct ?    9 Yes 3 No

What is the use of UpdateData funciton ?..

Answer / suman

answer #2 is different from 1 & 3
which is correct?

Is This Answer Correct ?    6 Yes 2 No

What is the use of UpdateData funciton ?..

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

What is the use of UpdateData funciton ?..

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

What is the use of UpdateData funciton ?..

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

Post New Answer

More MFC Interview Questions

In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,


Which MFC function is used to display output?

9 Answers   TCS,


What is serialization ?which function is responsible for serializing data ?

5 Answers  


If there is more than 100 control in a window how we can change the Taborder of a controls

4 Answers   Satyam,


What view class enables you to use an edit control as a view?

1 Answers  


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first

10 Answers   Siemens, Symphony,


How we call a dialog in another dialog?

2 Answers  


How to setup a timer?

3 Answers   IBM,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


Categories