Re: Obj reference to most recently added control

Author: Lew Schwartz

Posted: 2014-04-09 at 15:18:37

Guess I should have added that there will be many image controls on this

form. I need a way to work with the most recently added one individually.

-Lew Schwartz

On Wed, Apr 9, 2014 at 4:14 PM, Man-wai Chang <changmw@gmail.com> wrote:

> with thisform.path.to.Blah

> .Picture = "c:\foobar.jpg"

> endwith

>

>

> On Thu, Apr 10, 2014 at 4:10 AM, Lew Schwartz <lew1716@gmail.com> wrote:

> > Ok, I haven't written a program for 5 years, so please excuse the rust &

> > don't all jump at once.

> >

> > I'm calling this.AddObject("Blah","Image") on a form and now I've got to

> > populate the properties of the new image object. How do I get a reference

> > to it so I can do stuff like:

> >

> > oLastImageObject.Picture = "c:\foobar.jpg"

> >

> > ?

> >

> > -Lew The dunce

> >

> >

> > --- StripMime Report -- processed MIME parts ---

> > multipart/alternative

> > text/plain (text body -- kept)

> > text/html

> > ---

> >

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAFuU78dJYh5SYD_aMKEBdGTYNNXiMTq=Dg5GPKgCh7kf_Q7kaw@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2014 Lew Schwartz