In a WebSource procedure, I assign some value to a v:PDL variable.
(not a SESSION variable, just an ordinary, short living variable).
After this, I include some HTML with the net:f include file directive and terminate my WebSource procedure.
p_web.SetValue('PDL', 'test')
_('<!-- Net:f:/htm/navbar.htm -->')
_('<!-- Net:f:/htm/logon.htm -->')
RETURN ! terminates my WebSource procedure
PS: the underscore is a home written procedure and just a shortcut for a Do SendPacket.
It keeps the html that I send to the browser clean and readable in my source code.
In my logon.htm I display the v.PDL variable as follows...
<!-- Net:v:PDL -->
It does display the correct contents of my PDL variable, but am I just lucky that my calling NetwebSource hasn't terminate in the meantime and my v:PDL variable is still valid?
Or remains my NetwebSource in memory until my complete page is send to the browser?
regards
Patrick De Laet
PS: the underscore procedure ...
_ Procedure(prmString)
Code
packet = clip(packet) & '<13,10>' & prmString
Do SendPacket
!---
!---
!---
Return