Jump to content

Form Tag Not Set?


Frederick

Recommended Posts

I may be missing something obvious here.

In the main form, I call a second application form using:

aGlobalvar:=234;   // This is a global variable
frmSecond.Tag:=123;
frmSecond.ShowModal;

In the second form's OnShow event, I have the following code:

showmessage(IntToStr(self.tag)+', '+IntToStr(aGlobalvar));

Why does ShowMessage show a blank text, not even the comma separator?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1511)
 

Link to comment
Share on other sites

17 minutes ago, Frederick said:

I may be missing something obvious here.

In the main form, I call a second application form using:

aGlobalvar:=234;   // This is a global variable
frmSecond.Tag:=123;
frmSecond.ShowModal;

In the second form's OnShow event, I have the following code:

showmessage(IntToStr(self.tag)+', '+IntToStr(aGlobalvar));

Why does ShowMessage show a blank text, not even the comma separator?

Can you make a simple testcase for this?!

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...