Recent

Author Topic: visibility in two forms  (Read 1041 times)

moessner

  • New Member
  • *
  • Posts: 11
visibility in two forms
« on: April 20, 2022, 01:34:35 pm »
Hello everyone,

i am trying to use 2 forms.

The main   f_cla   which contains a listbox and a modalform   f_ins_cla   that allows you to insert a new item with listbox.Items.add ('aaa')

In the main form I have inserted, after implementation, the use of the unit relating to the modal form.

When I try to insert the new item from the modal form it tells me:

Error indentifier not found related to the main form.

I guess being in the modal form I don't know it.

How can I fix this?

Thanks for the help from now on
moessner - Mario Piva

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: visibility in two forms
« Reply #1 on: April 20, 2022, 02:30:11 pm »
I have a suspicion, that this is a classic "Child updates the Parent".
Don't....

As for your question: How do you "create" the modal Form?
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

moessner

  • New Member
  • *
  • Posts: 11
Re: visibility in two forms
« Reply #2 on: April 20, 2022, 02:38:54 pm »
I think that you have understood,

From the main form I have show the modal form with showmodal.

Thank you for your reply

moessner - mario piva

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: visibility in two forms
« Reply #3 on: April 20, 2022, 02:42:05 pm »
I think that you have understood,

From the main form I have show the modal form with showmodal.

Thank you for your reply

moessner - mario piva
That wasn't my question.
I need to see the code how you create the ModalForm
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: visibility in two forms
« Reply #4 on: April 20, 2022, 02:58:07 pm »
Here's a little working example

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: visibility in two forms
« Reply #5 on: April 20, 2022, 03:00:22 pm »
My example
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

moessner

  • New Member
  • *
  • Posts: 11
Re: visibility in two forms
« Reply #6 on: April 20, 2022, 07:14:36 pm »
I wish to thanks .
I solved.

moessner -  mario piva

 

TinyPortal © 2005-2018