Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: setsessionvar gotcha

$
0
0
Re: setsessionvar gotcha
Web Connection
Re: setsessionvar gotcha
Jan. 9, 2013
11:50 pm
3OS1F3NVWShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Tuvia Vinitsky
cLitteral() 'really' supports Vartype() $ 'CNYLDTX':
x == Eval(cLitteral(x))

It mimics other types into a readable way, such as
'Object of name ..., class ...'
'General'
etc.

1-dim Arrays: native aLines()
2-dim Arrays: abArray.prg!aLinesCols()

Objects: we're working on a simple xml parsing supporting nested objects, inspired from awServer.prg!awAJAX.PVofObject() / .ObjectOfPV() - it requires using some regular expression.


awesome function. I was halfway thru writing something similar to use setsessiojvar for non strings.

Why can't you use this to solve your issue of saving and restoring the _screen properties?

What functions in abtxt put the array or object together again, EVAL will not do that.


with FIC you can use
Session.setSessionVal('myDate', cLitteral(date())) && or dateTime() myDate = Evaluate(Session.getSessionVar('myDate'))

I should have realized this, so in case anyone tries this:

x=date()
y=dtoc(x)
session.setsessionvar("mydate", y)

Y has slashes in it, and since setsessionvar ises XML, it will not save the string value correctly.




-- thn (FoxInCloud)


Viewing all articles
Browse latest Browse all 10393

Trending Articles