Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox items not aligning properly
Message
De
25/04/2000 10:01:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00363107
Message ID:
00363123
Vues:
17
>Listbox is not editable :) So you could make its rowsourcetype = 3 (SQL) and write SQL statement to RowSource.
>
>Cetin, Can I put multiple SQL lines of code in the rowsource?
>Start with something like:
> "select name, date, detail, noun,quant from ledger"


Yes Tim,
You could use long SQLs but not directly in PEM sheet. Leave Rowsource, Rowsourcetype at their default. Use init of Listbox. As a sample :
local lcSQL
lcSQL = [select customer.cust_id, Company, ]+;
	[   orders.order_id, order_date, order_net, shipped_on, ]+;
	[   line_no, prod_name ] +;
	[ from customer ]+;
	[      left outer join orders ]+ ;
	[        on customer.cust_id = orders.cust_id ] +;
	[      inner join orditems ]+ ;
	[        on orditems.order_id = orders.order_id ] +;
	[      inner join products ]+ ;
	[        on orditems.product_id = products.product_id ]+;
	[ into cursor myCursor]
with this
 .RowSourcetype = 3
 .Rowsource = lcSQL
 .ColumnCount = 8
 .ColumnWidths = "50,60,70,50,60,70,50"
 .Boundcolumn = 6
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform