Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load only non-duplicated items from a table into an arra
Message
De
27/04/2005 19:44:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009049
Message ID:
01009051
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform