Advertisement

09.13.2008 at 11:34AM PDT, ID: 23729120
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Update in Foxpro

Asked by appelonia21 in FoxPro Database

Tags:

I am trying to replace fields in a foxpro table with a program.  I am new to foxpro and am having trouble.  
I have a set list of criteria that I want to update the table, the noun has to be filled in first and then the modifier field based on a series of words being found in the item description.
This is what I have so far:

WAIT WINDOW "START  PROGRAM ........ " NOWAIT
GO TOP
LOCAL nRec

nRec=RECNO()

 SCAN FOR EMPTY(NOUN)
   *nRec=RECNO()
   
    IF " ABRASIVE " $ IMA_DESC && OR ATC("ABRASIVE",IMA_DESC)>0
REPLACE NOUN WITH "ABRASIVE"
REPLACE MODIFIER WITH "BELT",NM_FLAG WITH "NM" FOR EMPTY(MODIFIER) AND NOUN="ABRASIVE" AND " BELT " $ IMA_DESC
 REPLACE MODIFIER WITH "DISC",NM_FLAG WITH "NM" FOR EMPTY(MODIFIER) AND (NOUN="ABRASIVE" AND " DISC " $ IMA_DESC) OR (NOUN="ABRASIVE" AND " DISK " $ IMA_DESC)
GOTO nRec
endif
ENDSCAN

SCAN ALL FOR EMPTY(NOUN)
   *nRec=RECNO()
   
IF " BAR " $ IMA_DESC && OR ATC("BAR",IMA_DESC)>0
        REPLACE NOUN WITH " BAR "
REPLACE MODIFIER WITH "FLAT",NM_FLAG WITH "NM" FOR EMPTY(MODIFIER) AND NOUN=" BAR " AND " FLAT " $ IMA_DESC
 REPLACE MODIFIER WITH "HEX",NM_FLAG WITH "NM" FOR EMPTY(MODIFIER) AND (NOUN=" BAR " AND " HEX " $ IMA_DESC)
GOTO nRec
endif
ENDSCAN

This works for this noun modifier pair (abrasive) but then when I go to add another 'If' statement it says I have a nesting error.  I have approx 2000 of these to add to make the program complete and I want to ensure that I have it set correctly before I continue.

I am sure that I am not explaining this correctly or clearly,

Thanks,




Start Free Trial
[+][-]09.13.2008 at 11:53AM PDT, ID: 22468719

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 01:17PM PDT, ID: 22469500

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 04:47PM PDT, ID: 22470505

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 05:58PM PDT, ID: 22470679

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 07:14PM PDT, ID: 22470857

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 07:17PM PDT, ID: 22470864

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 07:29PM PDT, ID: 22470886

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.13.2008 at 07:36PM PDT, ID: 22470905

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2008 at 10:02AM PDT, ID: 22473394

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.14.2008 at 10:05AM PDT, ID: 22473408

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: FoxPro Database
Tags: Foxpro
Sign Up Now!
Solution Provided By: ramrom
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628