about private var
Posted: Wed Apr 05, 2006 2:32 am
Hi,
function main()
private var1,var2,var3
var1:=123
fun1()
...
var2:=oserver:query("select ..")
fun2()
...
var3:= TXBrowse():New( odlg )
fun3()
return
function fun1()
private var1
var1:=0.1
...
return
function fun2()
private var2
var2:=oserver:query("select ..")
...
var2:end()
return
function fun3()
private var3
var3:= TXBrowse():New( odlg )
...
return
It seems , date,number,string variables like var1 does not cause prolems
but objects like var2,var3 cause problems.
Are these right ?
Best regards
Shuming Wang
function main()
private var1,var2,var3
var1:=123
fun1()
...
var2:=oserver:query("select ..")
fun2()
...
var3:= TXBrowse():New( odlg )
fun3()
return
function fun1()
private var1
var1:=0.1
...
return
function fun2()
private var2
var2:=oserver:query("select ..")
...
var2:end()
return
function fun3()
private var3
var3:= TXBrowse():New( odlg )
...
return
It seems , date,number,string variables like var1 does not cause prolems
but objects like var2,var3 cause problems.
Are these right ?
Best regards
Shuming Wang