gettingstarted
[Top] [All Lists]

Re: Index property not copied?

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Index property not copied?
From: "CV" <atauqua at hit dot net>
Date: Tue, 30 Sep 2003 19:45:12 -0500
References: <91590BE4-F366-11D7-85F7-003065D91F8C at earthlink dot net>
Wayne,

Yes, that's the way I interpreted your first post, and I believe that is
what I duplicated, with different results than you obtained. I used 4.5.3 on
OS10.2.3.

Jack



>
> On Tuesday, September 30, 2003, at 06:30  AM, CV wrote:
>
> > When I create an editfield on the fly in Window1 and then copy the
> > editfield
> > and all code to Window2, everything copies and executes correctly, in
> > 4.5.3
> > on OSX.
> >
> > Possibly there is something else involved in your case.
>
> I'm sorry my original message was not clear. What you describe works ok.
> Let me take another stab at what I was doing.
>
> While designing my app I created a window with a number of controls that
> will be shared  by several other windows. Included in these controls is
> an editfield that acts as a template to create controls on the fly. It
> is named editfield1(). While doing my design process I wanted to copy
> editfield1() to another window I was building in the IDE so I could
> again create controls on the fly in my second window. I merely used the
> Edit > Copy and then brought up my second window and used Edit > Paste.
> The code I transferred from window one to window 2 the same way.
>
> When I ran the debugger it gave me the error message during the compile.
> That's when I found out that editfield1() in my second window was
> instead just plain old editfield1 (without index 0). As soon as I went
> into the property window and changed the index to 0, it compiled fine
> and ran ok.
>
> Does that make it any clearer? And can you duplicate the behavior now?
>
> Wayne
>
> >
> > ----- Original Message -----
> > From: "Wayne Dreier" <wwdmld at earthlink dot net>
> >
> >> I'm not sure of this so I'm asking if anyone knows. I had created an
> >> editfield in one window with an index of 0 making it an array. I then
> >> copied that edifield() and pasted it into a new window I was
> >> creating. I
> >> did the same with my code. When I debugged the app it gave me a type
> >> mismatch error at the place in my code where I created the first
> >> editfield on the fly.
> >>
> >> I finally figured out what the problem was, selected the editfield I
> >> had
> >> copied, put in an index of 0 and everything worked fine.
> >>
> >> What seems strange to me is that all the other properties of the
> >> editfield() copied into the new one. It was not visible, the size was
> >> correct, etc. Is this correct behavior or not?
>



 - - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>