Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box
Message
From
06/05/2006 05:43:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Text Box
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01119855
Message ID:
01119855
Views:
44
Hi All

I created a product entry form on which I have one text box (micode). In lost focus event of the said box I type the following codes:

micode = This.Value
valmicode = IsBlack(micode)
if ! valmicode
select products
set orde to icode
seek micode
if foun()
.... displays values
else
scat memv blank
endif
else
nanswer= messagebox("Do you wish to exit ?",4+32+256, "Your ;
Selection",0)
do case
case nanswer = 6
ThisForm.Release
other
This.SetFocus
Nodefault
endcase
endif

Now, the question is, if I click on find button (if I want to find a specific record relating to this ) in commandgroup button (cmdFind) it checks the routine in lostFocus of the text box which is ofcourse blank and therefore it displays the message "Do you wish to exit ?". It really irritating, how can I overcome this ? Is there any idea for the better solution.

Please help !

Saify
Next
Reply
Map
View

Click here to load this message in the networking platform