Results 1 to 5 of 5

Thread: Are variables holding objects immutable?

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

    Are variables holding objects immutable?

    They seem to be. In an app with 2 pages, try this:

    Code:
    Lianja.activepage = "LaidOut"
    loCurPage = lianja.getelementbyid(lianja.activepage)
    ? loCurPage.caption && result: LaidOut
    Lianja.activepage = "Product"
    loCurPage = lianja.getelementbyid(lianja.activepage)
    ? loCurPage.caption && result: Laidout -- should be Product Info
    tia,

    Hank

  2. #2
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Looks like bug. Will take a look.

  3. #3
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Unable to reproduce this. One thing to point out though, is that the page Caption is what is referred to in the Page Attributes dialog as the 'Title' (displayed in the Headerbar, used to select the Page) rather than the 'Caption' (displayed in the Page Header).

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,948
    The issue is the object.

    Try this:

    Code:
    loUrPage = lianja.getelementbyid(lianja.activepage)
    ? loUrPage.title  && PROPERTY 'TITLE' not found
    ? loUrPage.caption && Product Info
    loUrPage = ""
    ? loUrPage.caption && Product Info
    This is in 8.3. Except for the comments noting the result, copied from the Console window.

    thanks,

    Hank

  5. #5
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,268
    Noted.

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