Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove a selected line from an editbox?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00653471
Message ID:
00653499
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Hi Steve,

I use a special class I've designed for similar purpose. This class consists of textbox, multiselect listbox, Add and Remove buttons. If you're interested, I can send you a class library, which contains this class and couple of other very useful classes. I use them to create a user selection screen...

>I have an editbox on a form. The editbox is tied to a Memo field. The editbox contains a list of names. I made a command button called Delete that is going to be used to remove a selected name from the editbox.
>
>What's the best way to do this? How can I identify the line that the user wants to remove from the editbox and then remove it? Use a line number? SelText? Can I set it up so that the user clicks on a line and the whole line gets selected automatically? And then when the user presses Delete button the line disappears and all the other names move up one position.
>
>Any help is very much appreciated.
>
>My Add button to add a name to the editbox works great. My Delete button does not.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform