Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem

Status
Not open for further replies.

hartrans

Programmer
May 28, 2007
4
IN
Hi
I wrote a program in VFP6 and distribute that as EXE with runtime files VFP6 SP4. The problem is that whenever I want to search/find a particular record it search the record but close the program immediately.

Please tell me what to do next for rectify this problem.

Arun
 
Your question/problem isn't very clear. You're using LOCATE FOR? SELECT WHERE? SEEK()?
 
If the exe works in the development environment but not as a stand-alone application then the problem is usually something to do with the READ EVENTS and CLEAR EVENTS commands. Either the READ EVENTS isn't being executed or the CLEAR EVENTS is being executed too soon.

Geoff Franklin
 
Arun,

I agree with Baltman. Yoiu'll have to provide more information about the code you have written.

With this kind of problem, it's often best to try to reproduce the problem in the simplest possible form. Try to write a program that performs whatever action you are having difficutlies with, and nothing else. This will help you focus on the specific issue.

If this cut-down program works, start adding the further functionality that you require until the problem comes back.

One other point: You'll get a better response to your questions at Tek Tips if you use a meaningful title for them. To use a title such as "Problem" doesn't tell us anything, since that same description would apply to maybe 95 percent of postings in this forum.

Mike




__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike I will be careful in future.

Thanks alvechurchdata, yes I read code carefully and found that one CLEAR EVENTS is being executed there, I remove that and program working fine.

Thanks all for responce.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top