For Programmers: Free Programming Magazines  


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
CC

2004-06-10, 3:57 am

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!

Jamie

2004-06-11, 3:59 pm

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com