Results 1 to 6 of 6

Thread: Reference an object in a custom VFP section

  1. #1

    Reference an object in a custom VFP section

    Hi,

    I am having a brain freeze. I know I did this a while back, but I can't recall how to do this.

    In a FoxPro Custom section, I have an image called myImage in a container that I would like to reference from a canvas section.
    I know those items are not part of the LOM, but cant recall how to reference them in the app inspector.

    Thanks (a slightly embarrassed) Herb

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Herb,

    so this is a different section?

    I believe it would be:

    loCustSection = lianja.get("mycustsect")
    loImage = loCustSect.mycontainer.myimage

    If the above works, but doesn't work when all put together (loImage = lianja.get("mycustsect")..mycontainer.myimage), Barry says to file a bug report, because it should.

    IOW, it's more like VFP after you get the object reference to the custom section.

    And this could be entirely wrong. <s>

    Hank

  3. #3
    Hi Hank,

    I tried every combination I could recall. Somehow I think I need to include the namespace.
    I will open a ticket.

    Thanks.

    Herb

  4. #4
    Yvonne - thanks!

    I had forgotten that I needed to declare the object public.

    That works!

  5. #5
    Senior Member
    Join Date
    Mar 2014
    Posts
    124
    Hi Herb - can you share the code answer, thanks.

  6. #6
    HI Paul - This is old post that Yvonne found.
    http://www.lianja.com/community/show...ll=1#post11775

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us