Results 1 to 4 of 4

Thread: Proper syntax

  1. #1
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658

    Proper syntax

    Hello,

    After seeing some examples, I'm wondering which, if any, is the proper and/or preferred syntax.

    oSection = Lianja.get("section3")
    oSection.hide()

    Or

    Lianja.get("section3").hide()

    Thanks,
    Cory

  2. #2
    Hi Corey,

    Good question, but I don't think it really matters.

    Herb

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    If you are changing many attributes just take an object reference and use that as in your first example.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Thank you.

    Cory

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