Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index based on two different fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00122694
Message ID:
00122695
Vues:
14
>I want to show a list of two different fields as one column in a dropdown list box.
>
>Example:
>Recno, Field1, Field2
>1 AB ZA
>2 AC ZB
>3 AD ZC
>
>List Box needs to show the two fields as one column:
>AB
>AC
>AD
>ZA
>ZB
>ZC
>
>User selects ZA or AB and goes to record #1.
>
>How can this be accomplished?
Hi Rixon,

Try:
SELECT FIELD1 AS MYFIELD, RECNO() AS REC_NUM;
  FROM Mytable;
    UNION ALL (SELECT FIELD2 AS MYFIELD, RECNO() AS REC_NUM;
      FROM Mytable);
  ORDER BY 1;
  INTO CURSOR Foo
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform