General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2000 Server
Let me try to explain again.
I used one variable pxclick as a public and place it in the load event of the mainform(sinvoice.scx), I intialized it with .f.
There is a command button on the form through which I call price verification (itempx.scx) form. If I click on command button (do form itempx) it appears if the focus is other then the textbox(Barcode field). But when the focus is move to the textbox(barcode field) and I call the (itempx.scx) it checks the routine of lost focus event of the textbox of barcode field.
Therefore, when click on command button I initialize (pxclick with .t.) and I keep the syntax like in lost focus event of the barcode is ....
If ! pxclick
...check the validity of the barcode field
...
else
do form itempx
endif
Now, I also include the syntax in the command button of the mainform(sinvoice.scx) like ..
pxclick = .t.
do form itempx
Therefore, it loads the form twice one in background and one in foreground. Which I found active when I released the mainform(sinvoice.scx).
I hope you got me properly.. please guide
Thanks - Saif
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only