Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box
Message
From
25/06/2003 07:29:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/06/2003 04:10:38
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00803655
Message ID:
00803688
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform