Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox & EditBox . . . 3

Status
Not open for further replies.

ShyFox

Programmer
Mar 22, 2003
210
ES
Hy,
I have a listbox with some articles in it. I want to be able when I click on a specific article to automatically add it to a editbox. If I select more than one article I would like to automatically put a separator in the editbox between those articles.
Is that possible?
How?
Regards

As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
 
Shyfox

There are some samples of Drag-and-drop that come with VFP's "solutions", that you could use to drag your selection from your listbox to your editbox.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
In the list box click event

FOR i = 1 TO This.ListCount
IF This.Selected(i)
IF !empty(myEditBox.Value)
myEditBox.Value=myEditBox.Value+;
"[Separator]"+;
This.List(i)
ELSE
myEditBox.Value = This.List(i)
ENDIF
EXIT
ENDIF
ENDFOR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top