TIP: Click on subject to list as thread! ANSI
echo: delphi
to: MIKE COPELAND
from: BART BROERSMA
date: 1997-03-31 15:51:00
subject: TP - Delphi (was: Language specific dia15:51:1403/31/97

Quoting a message from Mike Copeland to Bart Broersma
MC>MSGID: 1:114/307.0 3336e09e
 BB> I ported one of my old and much beloved TP programs to Delphi (1.0
 BB> (cost  me quite some sweating ...).
MC>   I'd be very interested in knowing something about how you did this.
MC>I've been programming in TP/BP for 12-13 years, having >700,000 lines
MC>of applications, but I can't seem to "switch the paradigm" or find the
MC>magic wand which will get me started in converting _any_ of my Pascal
MC>programs to Delphi.  I just don't see any real connection between the 2
MC>languages.
MC>   I have many menu-driven DOS programs, small and large, and it might
MC>make sense to convert them to Windows, via Delphi - I also own both
MC>Delphi 1.0 and 2.0.  However, even though I've taken a 3 day class in
MC>Delphi Development and have purchased several books, I have yet to
MC>discover anything written to help the experienced (!) Pascal programmer
MC>enter the world of OOP, RAD, or any of the elements of Delphi
Well,
The program I mentioned above consisted mosly of 
- File I/O
- Getting user input via my own EditString routine
- Menu
- Displaying and removing windows
- Displaying messages to the user.
- Printing
Solutions I came up with:
- File I/O: basically the same. I used the same error detection I did in TP 
(recently I'v started to use Exceptions)
- User input: I used (multiple) TEdit conpmonents, wich you can fill from a 
record structure if you want to.
- Menu: this is th easy bit. Just drop a TMenu componet on your form. For 
ech item add an onclick event.
- Displaying windows: use the Show (and Hide) methods of a form;
- Messages: even easier with the MessageDlg() function.
- Printing: not done yet.
Just play around with Delphi, drop several components on a form, do things 
in the components eventhandlers and just see what happens.
Give me some indication of specific problems you have and maybe I (or 
someone else out here) can help you getting on the way.
(b.t.w. I'm not an "experienced programmer", so I'm terrible at fast 
graphics and (serial) communication ...)
C.U. around here !
Bart
--------------------------------------
Bart Broersma
broersma@knmg.nl
 * Wave Rider 1.20 [NR] *
... UNREGISTERED EVALUATION COPY
--- Wave Rider v1.20
---------------
* Origin: Aargh! BBS Amsterdam (2:280/606)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.