![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
A few delphi questions
Hey there
Im new to delphi, i did pascal a few years back but im pretty rusty at it now.. im using delphi 2005 now. Anyway i would really appreciate it if anyone could help me out with these problems. I have an edit box which i can enter text or numbers into, when the user presses enter or a submit button how do i get what they typed to appear in a listbox? A small piece of code would be much appreciated. Thank you for reading! Cheers Ryan |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
Okey this is very simple and you should get it right away.
Procedure onclickbutton1(sender : TObject); var editcontent : String; beging editcontent := edit1.text; end; Thats the concept. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 4
Rep Power: 0
![]() |
As a side note, I must add that the first thing that stings about Delphi is data types. You must pay close attention to the .text after the variable name. The variable always has to have its extension attached.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|