Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Pascal/Delphi

Pascal/Delphi Forum for discussing Borland Delphi and Pascal coding techniques, tips and tricks.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-2008, 08:37 AM
fmwyso fmwyso is offline
Newbie
 
Join Date: Feb 2008
Posts: 3
Rep Power: 0
fmwyso is on a distinguished road
Default Some Questions :P.

Hey, i am always asked tons of questions from friends whenever i tell them about Delphi. And i was wondering if anyone could give me the answers so i can know and tell them ....

-- Is it low level programming? If so, how low is it .
-- Can it actually be used for a career?

Now to my real question ... I need some help on Delphi...

FIRST QUESTION

I have never been able to sucessfully load tstrings for some reason... And i need it because i'm trying to access a ini.readsectionvalues. It always says, "abstract error".

Here is an example...

Code:
procedure TForm1.Button1Click(Sender: TObject);
var
strngs: tstrings;
begin
strngs := tstrings.Create;
strngs.Add('Test');
Label1.Caption := strngs.Strings[1];
strngs.free;
end;

end.
-- I'm perfectly fine with using a different char type, but it needs to be able to have a list and work with tinifile.readsectionvalues().

Second Question

I have it open a popupmenu while they are typing like if they put 'DEF' then it opens a popup and if they click it, it will add 'INE ' to the end. My problem is that i want users to be able to type while the popup is up... For some reason, it stops you from being able to type until you close the popup... Any ways to fix this?

---- Btw, i'm planning on making sort of an IDE for a scripting program. It has several DEFINE variables and FUNCTIONS so i figure it might help to have a listbox saying where they all are... Also gonna add some extra features .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-25-2008, 12:28 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

Delphi generally functions as a high-level language, but you can embed assembly code if needed. Also, it is one of the languages I use almost daily in my job.

For first question: I believe you need Label1.Caption := strngs[1];
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 02:13 PM
poots poots is offline
Newbie
 
Join Date: Feb 2008
Location: London
Posts: 3
Rep Power: 0
poots is on a distinguished road
Default I work full time as a delphi developer

it's a very powerful and flexible language, unfortunately due it not being particularly well used it's not particularly lucrative
You can get away with using it like a more database friendly version of old visual basic or it can be used in proper enterprise environments.

The problem you are having with you first question, is firstly that you're requesting strings[1] rather than strings[0]
Delphi is a 0 based language so the first element will always be 0. This means to loop through stuff it's always to the items.count-1
The second problem seems to be related to the Tstrings object, you're far better off using Tstringlist, mainly because that's what the delphi helpfiles seem to recommend, and I've seen little reason to argue with them.

The second one sounds rather more complicated, I think popup menus will only respond to the first valid keystroke that matches the first letter of an option on the menu.
Honestly, I don't think a generic popup menu is going to do what you want, and off the top of my head I've not got an instant solution, though I may have misunderstood what you're trying to do
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-31-2008, 07:43 AM
HERBERTS HERBERTS is offline
Newbie
 
Join Date: Jul 2008
Posts: 4
Rep Power: 0
HERBERTS is on a distinguished road
Default Re: Some Questions :P.

Hi all ,
Delphi is not a dead language , its still used on the market .I always use it in Report generation .I use it always in FastReport and Fastscript to produce quality reports and data analysis .You can check out Report production using FastReport , if you know delphi then try from FastReport site and check how much they use it , then you will know how much you can still depend on Delphi today .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of beginner questions Nille C# Programming 5 01-16-2008 04:29 AM
Newbie questions regarding inputing a sentence Emir C and C++ 3 12-29-2007 07:21 PM
questions about java games stack Java Help 3 07-02-2007 06:35 PM
A few basic website questions ehudgershon General Programming 4 06-11-2007 03:20 PM
Where to ask vBullentin questions PC101 Website Design 4 09-19-2006 05:16 PM


All times are GMT -5. The time now is 03:14 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads