Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List box
Message
De
25/06/2003 07:29:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/06/2003 04:10:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00803655
Message ID:
00803688
Vues:
9
>hi all
>how to make a listbox with a table or sql statement that it show in listbox two fields
>and when i clicked on one fields a star(*) appear left or right this line
>i want by this way select a field and it show diferent of other field in listbox

Reza,
I'd preferably use a grid instead. However you might do something near working with bmp. ie :
*ListBox.Init
this.AddProperty('nLastSelected',0)
With this
 .RowSourceType = 3
 .RowSource = 'select Cust_ID,Company from customer into cursor crsLst'
 .ColumnCount = 2
 .ColumnLines = .t.
 .ColumnWidths = '100,200'
endwith

*Listbox.Click
With This
  If .nLastSelected # 0
    .Picture(.nLastSelected) = ""
  Endif
  .Picture(.ListIndex) = "c:\myPath\myAsterix.bmp"
  .nLastSelected = .ListIndex
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