Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing records in a list box
Message
De
30/05/2003 10:41:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00794498
Message ID:
00794511
Vues:
9
>I have a text box (thisform.text1) in which I enter a number. When I click a button it shows a table of results based on the syntax:
>
>SELECT modacad.key1, modacad.key2, modacad.key3, modacad.key4 ;
>FROM "C:\Data\modacad" ;
>WHERE thisform.text1.Value=modacad.key3 ;
>into CURSOR result
>
>But this shows a table with the results. How can I get those four fields in the select statement to show in a list box please?
with thisform.myListbox
 .Rowsourcetype = 3
 .Rowsource = ;
'SELECT modacad.key1, modacad.key2, modacad.key3, modacad.key4'+ ;
' FROM "C:\Data\modacad"'+;
' WHERE thisform.text1.Value=modacad.key3'+ ;
' into CURSOR result'
 .Columncount = 4
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform