Results 1 to 6 of 6

Thread: Variable as label

  1. #1
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117

    Variable as label

    How can I change the caption label with a variable value?

    ...
    ...label5.caption = (here the value)
    ...


    How can do it?

    Thanks

    Victor Navarro
    Barranquilla, COLOMBIA
    3008102508
    ICQ 279 364 380
    Face: +573008102508
    MSN: eres_un_vago@hotmail.com
    Mail: eres_un_vago@yahoo.es
    Whatsapp: +573008102508
    Skype: eres_un_vago
    PIN: 7A3F5E60

  2. #2
    Senior Member
    Join Date
    Jan 2014
    Posts
    351
    Hi Victor

    Try macro using { } in caption.

    You can put any valid expression within the { } so the caption will be evaluated at runtime

    Best Regards

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,890
    That was only added in v1.1.7 which he does not have as it has not yet been released.

    Why do you want to change a caption in code?

    you need to read the documentation "Working with the Lianja Object a model"
    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
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Quote Originally Posted by barrymavin View Post
    That was only added in v1.1.7 which he does not have as it has not yet been released.

    Why do you want to change a caption in code?

    you need to read the documentation "Working with the Lianja Object a model"
    Well, I need show a diferent message in the label, for each case of result, from the user activity.
    Depending the user activity, we change the text to show.

    Thanks

    Victor Navarro
    Barranquilla, COLOMBIA
    3008102508
    ICQ 279 364 380
    Face: +573008102508
    MSN: eres_un_vago@hotmail.com
    Mail: eres_un_vago@yahoo.es
    Whatsapp: +573008102508
    Skype: eres_un_vago
    PIN: 7A3F5E60

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,890
    Then use { expression } macros in the caption and just refresh the field.

    Changing the captions with text would be saved with the App and have undesirable affects.
    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

  6. #6
    Senior Member
    Join Date
    Apr 2013
    Location
    Soledad, Atlántico, Colombia
    Posts
    117
    Quote Originally Posted by barrymavin View Post
    Then use { expression } macros in the caption and just refresh the field.

    Changing the captions with text would be saved with the App and have undesirable affects.
    Well, I'll try

    Thanks

    Victor Navarro
    Barranquilla, COLOMBIA
    3008102508
    ICQ 279 364 380
    Face: +573008102508
    MSN: eres_un_vago@hotmail.com
    Mail: eres_un_vago@yahoo.es
    Whatsapp: +573008102508
    Skype: eres_un_vago
    PIN: 7A3F5E60

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