Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-12-2005, 09:54 AM   #1 (permalink)
dazzdave
Registered User
 
Join Date: Mar 2005
Posts: 3
dazzdave is on a distinguished road
Delphi, Reading In Data!

Hi, im new to this forum about 10 seconds ago like, and quite new to delphi, but what I want to know is how do you read text from a text file created in note pad, into a drop down list, I have been able to read the text in the notepad text file into text boxes, using the string VAR, however, when I try reading it into the drop down boxes, it says, that the drop down box and string or TEdit, something like that is incompatible, please help thanks lol?!
dazzdave is offline   Reply With Quote
Old 03-22-2005, 01:09 AM   #2 (permalink)
wishknew
Wisnu Widiarta
 
wishknew's Avatar
 
Join Date: Feb 2005
Location: Indonesia
Posts: 14
wishknew is on a distinguished road
Send a message via Yahoo to wishknew
Quote:
Originally Posted by dazzdave
Hi, im new to this forum about 10 seconds ago like, and quite new to delphi, but what I want to know is how do you read text from a text file created in note pad, into a drop down list, I have been able to read the text in the notepad text file into text boxes, using the string VAR, however, when I try reading it into the drop down boxes, it says, that the drop down box and string or TEdit, something like that is incompatible, please help thanks lol?!
1. Create a New Application
2. Drop a TComboBox
3. Double click your form (Form1 by default)
4. Write this:

Code:
procedure TForm1.FormCreate(Sender: TObject);
begin
     ComboBox1.Items.LoadFromFile('YourFile.txt');
end;
Done!

WishKnew
wishknew is offline   Reply With Quote
Old 03-22-2005, 05:55 AM   #3 (permalink)
dazzdave
Registered User
 
Join Date: Mar 2005
Posts: 3
dazzdave is on a distinguished road
thanks a lot man, worked great, really appreciate your help.
dazzdave is offline   Reply With Quote
Old 03-22-2005, 04:35 PM   #4 (permalink)
wishknew
Wisnu Widiarta
 
wishknew's Avatar
 
Join Date: Feb 2005
Location: Indonesia
Posts: 14
wishknew is on a distinguished road
Send a message via Yahoo to wishknew
Quote:
Originally Posted by dazzdave
thanks a lot man, worked great, really appreciate your help.
Anytime, Dude. Anytime.

WishKNew
wishknew is offline   Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error java.net.ProtocolException: Cannot write output after reading input. wishknew Java 4 03-07-2005 05:01 PM
Is Delphi dead? Leyland All Other Coding Languages 14 02-28-2005 05:05 PM
Filling a datagrid with BLOB data vinny MS Technologies ( ASP, VB, C#, .NET ) 2 08-19-2004 12:06 AM
Application Scope in a Web App sde Java 5 08-17-2004 10:55 AM
Would this data be of use too you? SiteTutor Lounge 3 08-02-2002 06:58 AM


All times are GMT -8. The time now is 02:59 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting