Solved

copy from listbox - edit.text

Posted on 2009-07-10
1
590 Views
Last Modified: 2013-11-23
I have a listbox. I have around 40 options, i want it to when i click on the listbox and select an item it copys it to my edit.text.

simple?

note: when i select the option in listbox its already highlighted.
0
Comment
Question by:SonicM3
1 Comment
 

Accepted Solution

by:
SonicM3 earned 0 total points
Comment Utility
edit41text := listboxget.items[listboxget.itemindex ];

it gives a error when i scroll with my listbox,  list index out of bounds.

ive beentold something about array. can someone fix this. Its inside the ONLICK of my listbox.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now