Results 1 to 6 of 6

Thread: memo field from database to memory varible in a editbox

  1. #1

    memo field from database to memory varible in a editbox

    Hi, I have a memo field in my database and I want it to store it into a memory variable so that i can show it in an editbox and store whats modify from it, I was wondering, how can that be done?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Karla

    You don’t need to use a variable just specify the table.column as the data source in the attributes and the memo field will be data bound saving automatically.

    Drag a memo field onto a canvas will automatically create the editbox for you and bind it to the memo field.
    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

  3. #3
    Hi,
    I want to store it in a memory variable because I donīt apply the changes directly in my database, is there any way where I can do this?

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Karla

    You can bind to a variable in desktop apps by specifying m.varname

    Alternatively you can set the text in your editbox through code.
    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

  5. #5
    Thanks, and how can a define the type of a memory varible, meaning, I want certain memory variable to be character type that allows me to store more than 255 characters, but I canīt find how can I do that. Because the problem that I have with my editbox is that the memory varible I asigned to, itīs not allowing me to store more than 255 charactes.

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Karla,

    There is no 255 limit on text. The string limit is 64k.

    Create a public variable

    public myvar = "hello world"

    Drag an editbox onto a canvas section

    specify m.myvar as the "data source"

    edit the text and in the console type

    ? myvar

    You will see the text as you typed it
    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

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