Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matrix rate
Message
From
28/06/1999 11:38:07
Charlie Davies
McIntire School of Commerce
Virginia, United States
 
 
To
27/06/1999 08:33:00
Dovi Gilberd
Dovtware Consulting Inc
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00233032
Message ID:
00234790
Views:
28
Dovi,

If you're trying to compare the values in the fields, you need to change this line of code:

> if field(n)=upper(code)

If you're trying to evaluate the values of the fields, you have to do this:

> if eval(field(n)) = upper(code)

The way you had it, it would have just given you the name of the field and not the value inside; therefore, the if statement never would have evaluated to true. Have you tried turning on the debugger to get a closer look at what's going on?

What is happening when this function runs? How do you know it's not working properly?

By the way, this forum is here for developers to help one another. Unless you want someone to build an application for you, I don't think anyone on this forum expects any payment for the help they offer. Hope this helps you out.
Previous
Reply
Map
View

Click here to load this message in the networking platform