Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting blank record into rowsource when rowsourcetype
Message
De
18/08/2005 13:29:52
 
 
À
18/08/2005 13:16:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01042019
Message ID:
01042023
Vues:
26
I have a combobox in a grid with RowSourceType = 3, and the following RowSource:
select partno, descript from PartsList where empty(Prodalias) into cursor TempCombo order by partno
Is there some way to insert a blank row into the beginning of this cursor as part of this statement?
SELECT [ -- None -- ] AS partno, [ -- Not Applicable -- ] AS descript FROM PartsList UNION SELECT partno, descript from PartsList where empty(Prodalias) into cursor TempCombo order by partno
You just need to be sure that you use PADR() to make sure that the fields are the same length in both parts of the UNION.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform