Jump to content

Object reference between different forms at design time


arilotta

Recommended Posts

Hi all,

I'm having some troubles setting object references between different forms at design time; reference is not kept when forms are closed

and reopened.

For example, setting the TDataSource property for a TUniDbGrid when the two objects belong to different forms

(TUniForm descendents).

However, if I place the TDataSource on the UniMainModule, it works.

 

Is anyone else experiencing the same problems ?

 

Thanks

Andrea

Link to comment
Share on other sites

Sorry to say, but it is not happening with usual VCL TForms.

Just create a simple project with 2 forms, place a tdatasource in Form1, place a dbgrid in form2, 

add Form1 in the uses of Form2, set the DBGrid's datasource property to the datasource in form1.

The close Form2, or close the project, and reopen it: the link is manteined.

 

This does not happens between TUniForms, only between TUniMainModule and TUniForms...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...