Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load only non-duplicated items from a table into an arra
Message
 
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:
01009050
Views:
20
>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. Thanks for the help!
SELECT DISTINCT ContactName FROM Contacts ;
  ORDER BY 1
  INTO ARRAY aContacts
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform