Public var in Get
Posted: Mon Nov 14, 2005 12:17 pm
I have a dialog inside a dialog but the gets have the same name (MUST be public) .How can i restore the one get when i release the variable from the get with the same name ?
The bellow sample shows the problem i'am facing .Can anyone tell me how to do it?
Sample:
#include "fivewin.ch"
function main()
local oDlg,oget,obtn
public nn:=0
define dialog odlg ;
from 0,0 to 200,300 pixel
@ 10,10 get oGet var nn of odlg ;
size 50,100 pixel
@ 0,0 button obtn action tt() pixel
activate dialog odlg
return ""
function tt()
local odlg,oget
public nn:="sdfdsf"
define dialog odlg ;
from 10,30 to 200,300 pixel
@ 10,10 get oGet var nn of odlg ;
size 50,100 pixel
activate dialog odlg
release nn
return ""
function tt2(oo,pp)
public &oo:=pp
return ""
The bellow sample shows the problem i'am facing .Can anyone tell me how to do it?
Sample:
#include "fivewin.ch"
function main()
local oDlg,oget,obtn
public nn:=0
define dialog odlg ;
from 0,0 to 200,300 pixel
@ 10,10 get oGet var nn of odlg ;
size 50,100 pixel
@ 0,0 button obtn action tt() pixel
activate dialog odlg
return ""
function tt()
local odlg,oget
public nn:="sdfdsf"
define dialog odlg ;
from 10,30 to 200,300 pixel
@ 10,10 get oGet var nn of odlg ;
size 50,100 pixel
activate dialog odlg
release nn
return ""
function tt2(oo,pp)
public &oo:=pp
return ""