Skip to main content

Hello Everyone , 

 

I got 2 new IEE windows form.

One is the parent a Master Form details Tab form and one is the children a form window.

I’m trying to get fields values from the parent form.

How can I reference those fields in the children form ?

 

Can i get the value from the ‘’:i_hWndParent.FrameName.FieldName.Text property itself ? or I need to get it from a member variable ?

 

Thank you ,

Best regards

Hi @Simon L. 

I think you will be able to retrieve a parent field value from the child form as follows.

(ParentWindowName).FromHandle(i_hWndParent).(ParentField).Text;

Thanks & Best Regards,

Wimali


HI @Wimali Athulathmudali  ,

Thank you for your answer.

This is a viable solution.

This work if the field isn’t protected or private.

 

Best regards ,


Hi @Simon L. ,

You can declare a new variable and assign the required value in parent window then you will be able to 

use that particular variable as above.

Thanks & Best Regards,

Wimali