Home > Archive > Delphi > June 2004 > referring to other forms and controls
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
referring to other forms and controls
|
|
|
| Hello!
I am recently getting back into Delphi. I have lots of experience
with VB and Access so I could be .
I have a problem when trying to assign values to controls on other
forms. It seems I can create a form and refer to it or it's controls,
but if I try to refer to a form that is already open, I get a memory
access violation.
For example, I can open form1 and then form2 and refer to form2
alright, but if I try to refer to form1 (or a control on it) I get a
memory access error.
How do I refer to controls (change the values/text of them) without
getting the violation error?
The application is MDI. I am using Delphi version 7.
Thanks!
| |
|
| maybe if you show us how your referencing the form i may help.
you stated its a MDI app, i assume that you maybe trying the
access the another MDI child form?
CC wrote:
> Hello!
>
> I am recently getting back into Delphi. I have lots of experience
> with VB and Access so I could be .
>
> I have a problem when trying to assign values to controls on other
> forms. It seems I can create a form and refer to it or it's controls,
> but if I try to refer to a form that is already open, I get a memory
> access violation.
>
> For example, I can open form1 and then form2 and refer to form2
> alright, but if I try to refer to form1 (or a control on it) I get a
> memory access error.
>
> How do I refer to controls (change the values/text of them) without
> getting the violation error?
>
> The application is MDI. I am using Delphi version 7.
>
> Thanks!
>
|
|
|
|
|