First Time Delphi Programmer

Get help on programming - C++, Java, Delphi, etc.
Post Reply
Ryan_Cooper
Registered User
Posts: 3129
Joined: 22 Sep 2008, 11:16
Location: stuck in my own world

First Time Delphi Programmer

Post by Ryan_Cooper »

Firstly forgive me if there is already a topic like this one already...

I am trying my hand at designing a simple application for adding and viewing info in my firebird based SQL DB using Delphi but honestly i have no idea what i'm doing and would really appreciate any help or tips I can pickup as the only things that i do know is how to basically use the visual designer and the small bits of code that i figure out or pickup from listening to the developers at my work....Please can you guys help I would greatly appreciate it.

my first problem is that I have managed to create my window with its drop down menus and toolbar buttons but how do i get the menu items to open another form that i have created when clicked on.
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
spearone
Registered User
Posts: 105
Joined: 27 Sep 2008, 13:01
Location: Pretoria

Re: First Time Delphi Programmer

Post by spearone »

Well you first have to setup a connection to the DB. I know with a Microsoft Access DB i used ADO Query's etc.

I can probably rustle up some of my code if I look hard enough :)
SoulBlade
Registered User
Posts: 11025
Joined: 29 Sep 2003, 02:00
Location: /\/¯¯¯¯¯\/\
Contact:

Re: First Time Delphi Programmer

Post by SoulBlade »

Ryan_Cooper wrote: but how do i get the menu items to open another form that i have created when clicked on.
On the OnClick event just show the required form. Which form? Use the combobox selected index to determine that.
Core i5 3550 | 8GB RAM | 500W | Samsung T260 | GTX760 OC | 4.56TB HDD space
Ryan_Cooper
Registered User
Posts: 3129
Joined: 22 Sep 2008, 11:16
Location: stuck in my own world

Re: First Time Delphi Programmer

Post by Ryan_Cooper »

Ok so how do i have my app connect to my firebird database
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
geraldhum
Registered User
Posts: 199
Joined: 13 Feb 2009, 12:59

Re: First Time Delphi Programmer

Post by geraldhum »

I know this is old but have a look at www.connectionstrings.com
Ryan_Cooper
Registered User
Posts: 3129
Joined: 22 Sep 2008, 11:16
Location: stuck in my own world

Re: First Time Delphi Programmer

Post by Ryan_Cooper »

Ok cool so now i know how to get it to point to my DB but i got a problem i have all my forms the way i want it but i cant seem to get them to display under the OnClick menu when i want to assign buttons to it...is there some code that I'm missing
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Re: First Time Delphi Programmer

Post by Vampyre_2099 »

I'll try my hand at this... although I haven't used delphi in a good 3 years.

if I understand correctly you have multiple forms

if so then for the onclick of the button you need to put

button1.onclick(blah blah blah)
begin
form2.show;
end;

then when you try run the app, it should have a message saying that it requires a link to another form, should it add it? you say yes
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
Post Reply