Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing listbox
Message
From
02/02/1999 13:15:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00183027
Message ID:
00183049
Views:
21
>>>In another thread, Cetin and I discovered that if I want to put a picture in the listbox, I need to use ADDITEM.
>>>
>>>I can figure out how to add each item in the cursor to the grid. But manipulating it after that is the hard part. I need to:
>>>
>>>1. Remove all the items from the list to redo it.
>>>
>>>OR
>>>
>>>1b. Insert an item into the list, keeping it in order, and remove a certain item from the list.
>>>
>>>2. Associate a key with the item on the list and be able to get the key when the user clicks on an item.
>>>
>>>Thanks,
>>>
>>>-Michelle
>>Michelle,
>>Grid, listbox ? Can you elaborate it more (something different than listindex, indextoitemid etc ?).
>>Cetin
>
>Listbox, of course. Look at the title. :)
>
>I've only used listboxes with cursors and I just looked at the current record in the cursor to find everything I needed. I don't know how to use a listbox with values. I was looking for a primer.
>
>-Michelle
Then IndextoItemId, ItemIDtoIndex, addlistitem (rather than additem) might be what you're looking for (ie: set primary key as item id or its recno()).
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