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
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
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
Thanks Barry,
I thought it was me again![]()
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
Thanks Barry,
I'll try that out as soon as you upload Beta6
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:
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.
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
Brilliant that will be really useful in development
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
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