Hi,
function F()
{
var m_flag = 42;
this.Flag = m_flag;
this.SetFlag = function(val){m_flag = val;}
this.GetFlag = function(){return m_flag;}
}
var f = new F();
alert(f.Flag + ' ' + f.GetFlag());
f.SetFlag(-13);
alert(f.Flag + ' ' + f.GetFlag());
Can one somehow let 'Flag' always return the *current* value
of m_flag *without* out using a function?
Somethin like a property Get/Put in VB/COM so you can write
f.Flag = -13;
var myFlag = f.Flag; // return -13
?
--
Gruesse, Christoph
Rio Riay Riayo - Gordon Sumner, 1979