Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 11th, 2005, 8:54 PM   #1
stinger
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 stinger is on a distinguished road
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
stinger is offline   Reply With Quote
Old Apr 13th, 2005, 3:11 AM   #2
visualperception
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 visualperception is on a distinguished road
Thumbs up The Code Example For you.

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.
visualperception is offline   Reply With Quote
Old Aug 13th, 2005, 7:51 PM   #3
CaptainChaNinja
Newbie
 
CaptainChaNinja's Avatar
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 CaptainChaNinja is on a distinguished road
Exclamation

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.
CaptainChaNinja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC