Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
All in one SQL
Message
De
21/04/1997 12:29:32
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
21/04/1997 12:02:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00029094
Message ID:
00029100
Vues:
27
> > I have a listbox given the user a choice of various inventory code to > select from. > > So, at first, we had a SQL like this > > SELECT NOCOULEE FROM COULEE GROUP BY 1 INTO CURSOR TEMP > > Then, we needed to add the choice of all inventory codes. > > So, because the listbox was using RowSourceType=3, I found a way to do it > while keeping that RowSourceType value. > > SELECT NOCOULEE FROM COULEE GROUP BY 1 UNION SELECT 'All' FROM EMPLOYE > > Note here that any table other than EMPLOYE will do the job. Is there any > other fancy way of doing that? Fancy? maybe not. But his is how I've done it before. Instead of RowsourceType = 3, set it to 5 and select into array. Then you can add as many array elements as you want in order to provide the user alternate choices other than what's in your table. HTH -- Matt McDonnell Conventional Wisdom - "If it ain't broke, don't fix it." Gates Wisdom - "If it doesn't work, sell it, and fix it later."
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform