Results 1 to 2 of 2

Thread: Drilling down

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

    Drilling down

    The Lianja Object Model blog is a good start, but there are a few things missing (and they are probably there in some other form), hence the question.

    In VFP, I would use amembers() on an object to get the properties and/or methods. Or, if it hadn't been broken, I could have iterated the sub-objects. I tried iterating from the console on a page object, using this code:


    Code:
    loProdPage = Lianja.getelementbyid("Product")
    foreach oItem in loProdPage
        loItem = oItem
        =messagebox(oItem.name)
    endfor

    and in the debugger it would freeze on line 3 (foreach).

    Being able to map what is there now is a key to building tools, of course. Any hints or suggestions welcomed.

    tia,

    Hank
    Last edited by HankFay; 2012-05-07 at 16:02.

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    That will be fixed in beta8 refresh 5.

    The amembers() function is not implemented. We will include introspection of objects in 1.1 as it requires a bit of work. The engine handles it but we need to enable it for each class in the framework.

Tags for this Thread

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