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:37:55
 
 
À
18/08/2005 13:29:52
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:
01042026
Vues:
23
That seems to work -- if I don't use the order by clause. I get an error squawk if I do use it.



>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.
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform