In WC 5.x
Any idea why TRIM(SESSION.getsessionvar("_brdcode")) would return a blank value, but SESSION.getsessionvar("_brdcode") would return a correct value?
I'm quite sure it used to work properly so it's probably a VFP environment setting...
That doesn't make any sense. Are you sure you're pasting the right thing here?
Session changed recently to use varchar fields so that may change the behavior of your queries if there are spaces in the table, but based on the code you're showing that should not matter because the TRIM()
happens after the value has been returned. Whatever the diff is it's gotta be application specific.
+++ Rick ---
Yes, I agree it doesn't make sense. I'll report back when I find the problem. Thanks for including source...
Ahhh - seems like it's getting blanked out by wwdropdownlist.text_assign... checking further.
A more accurate line would be THIS.ddbrd.TEXT= TRIM(SESSION.getsessionvar("_brdcode"))
THIS.ddcol.TEXT= ALLTRIM(SESSION.getsessionvar("_colorcode")) && assigns empty value??? lcTest = TRIM(SESSION.getsessionvar("_colorcode")) && Assigns value of session variable lcTest = SESSION.getsessionvar("_colorcode") && Assigns value of session variable
Are there some object properties or methods of ddcol that I should be checking?
ddcol is a wwwebdropdownlist
Most likely because Session isn't enabled yet. Check and make sure you do InitSession()
in the OnProcessInit()
OR make sure that the form calls this.EnableSessionState=.T.
before you make the assignment.
+++ Rick ---