Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: Global object

  1. #21
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Hi Barry,

    If I try
    lnprint = Lianja.localstorage.getItem('oPref').NUPDATEDAYS

    ? lnprint && nothing printed

    ? vartype(lnprint)

    The vartpe for lnprint = C

    I would have expected N since it's a number in oPref

  2. #22
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    I will look into it and fix it. Seems to not work as expected.

    In fact i broke it in the last beta.
    Last edited by barrymavin; 2022-03-21 at 03:30.
    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. #23
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Thanks Barry,

    I thought it was me again

  4. #24
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    Hi David,

    I've corrected that in beta6.

    Click image for larger version. 

Name:	Screen Shot 2022-03-21 at 3.50.48 PM.jpg 
Views:	62 
Size:	35.3 KB 
ID:	2773

    Click image for larger version. 

Name:	Screen Shot 2022-03-21 at 3.53.45 PM.jpg 
Views:	34 
Size:	39.8 KB 
ID:	2774
    Last edited by barrymavin; 2022-03-21 at 03:54.
    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. #25
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Thanks Barry,

    I'll try that out as soon as you upload Beta6

  6. #26
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Hi Barry,

    That works but I'm still getting something odd

    ** use select in test
    *Lianja.localstorage.removeitem('oPref')
    select * from dpref into cursor temp1
    select temp1
    Scatter name oPref

    * ? oPref.NUPDATEDAYS && works and prints 14 as expected
    Lianja.localstorage.setItem('oPref',oPref)

    ? Lianja.localstorage.getItem('oPref').NUPDATEDAYS

    Lianja.localstorage.getItem('oPref').NUPDATEDAYS = 2

    ? Lianja.localstorage.getItem('oPref').NUPDATEDAYS


    The result is:

    Name:  2022-03-21_14-09-00.png
Views: 49
Size:  2.4 KB


    They are both numeric and both have the same length, but the 2 prints with a load of space in front of it as if it's indented,
    Last edited by avianmanagement; 2022-03-21 at 05:10.

  7. #27
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    Thatís just cosmetic when working interactively.

    you can use ? To look at any object or array.

    ? opref
    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

  8. #28
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Brilliant that will be really useful in development

  9. #29
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,889
    Blog Entries
    18
    Hi David

    I want to make you aware of sessionstorage also.

    https://www.lianja.com/doc/index.php...rage_in_Lianja

    This can be used to share data between multiple processes running on a machine.
    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

  10. #30
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Thanks Barry,

    That is perfect for my needs when I have egg data and need to open another ap and get the values, better that attaching objects on _screen as I do now in VFP.

    Also for when prgs need to pass back record objects for other things to work with.

    Many thanks

    David

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