Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load only non-duplicated items from a table into an arra
Message
From
27/04/2005 19:44:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009049
Message ID:
01009051
Views:
13
>Is there a way to load items from a table into an array but limit the loading to only records that have a unique value in a field? I have a contract database with many of the contracts having the same name. I want to have a dropdown list in a combobox associated with an array to select a contract name but not show duplicates. I know I can write many lines of code to do this, but for years now, I have wondered if there was an easier way.

Some variation of SELECT DISTINCT ... INTO ARRAY ... should do the trick.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform