User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 401,948 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,340 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 3004 | Replies: 12
Reply
Join Date: Dec 2006
Location: Maidstone, UK
Posts: 16
Reputation: JJarvis is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
JJarvis's Avatar
JJarvis JJarvis is offline Offline
Newbie Poster

Help How do you load a code from pressing another button?

  #1  
Dec 17th, 2006
Hey, I'm really new to programming and I was wondering how you open a form after pressing a button. Such as, there is a button saying "Start", which, once clicked opens up a guessing game. I know it's probably a one line code but I can't find it anywhere on the internet.

Thanks,


Jordan

P.S. If anyone knows of any new persons tutorals could you please tell me.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2006
Location: Romania
Posts: 171
Reputation: radu84 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 16
radu84 radu84 is offline Offline
Junior Poster

Re: How do you load a code from pressing another button?

  #2  
Dec 18th, 2006
in order to open a new form, first you must to have 2 forms.
to open a form when you click a button, you must put the following code on the button click event :
"form2.show;"

try to search on google some delphi begginers tutorial or even better go and buy a delphi book in order to learn delphi:cheesy:

best regards,
Reply With Quote  
Join Date: Dec 2006
Location: Maidstone, UK
Posts: 16
Reputation: JJarvis is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
JJarvis's Avatar
JJarvis JJarvis is offline Offline
Newbie Poster

Re: How do you load a code from pressing another button?

  #3  
Dec 18th, 2006
Thanks, as for the tutorials, I have looked on google and the books are expensive where I live and I'm not buying them online.

Thanks again,

Jordan Jarvis
There are 10 people in the world, those that understand binary and those that don't.
Reply With Quote  
Join Date: Dec 2006
Location: Romania
Posts: 171
Reputation: radu84 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 16
radu84 radu84 is offline Offline
Junior Poster

Re: How do you load a code from pressing another button?

  #4  
Dec 18th, 2006
probably today i will make a new thread with links to some tutorals.

best regards,
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,695
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How do you load a code from pressing another button?

  #5  
Dec 20th, 2006
Books are cheap. What you learn from a decent book costing $40 will earn itself back many times over in the space of a few days work.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Dec 2006
Location: Romania
Posts: 171
Reputation: radu84 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 16
radu84 radu84 is offline Offline
Junior Poster

Re: How do you load a code from pressing another button?

  #6  
Dec 20th, 2006
i'm agree with you, but if somebody doesn't know nothing about delphi, programming, algorithms, etc then i suggest to buy a book, sometimes you find there some good guidelines.

best regards,
Reply With Quote  
Join Date: Dec 2006
Posts: 8
Reputation: eddie-jdp is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
eddie-jdp eddie-jdp is offline Offline
Newbie Poster

Re: How do you load a code from pressing another button?

  #7  
Dec 21st, 2006
I've been learning from... "Inside Delphi 2006". Not a bad book. I would prefer it if it just stuck to Delphi... It also covers C++ Builder so that you learn Delphi and C++ Builder at the same time.

JJarvis, good luck with your learning.

Eddie
Reply With Quote  
Join Date: Dec 2006
Location: Romania
Posts: 171
Reputation: radu84 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 16
radu84 radu84 is offline Offline
Junior Poster

Re: How do you load a code from pressing another button?

  #8  
Dec 22nd, 2006
off topic: BDS 2006 is an very powerfull tool and has 3 big parts. it incorporates delphi for win32, for .net, C#, and C++. to better understand from what is compounded follow this link

http://delphi.about.com/od/beginners...hi_flavors.htm

best regards,
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,695
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How do you load a code from pressing another button?

  #9  
Dec 25th, 2006
Eddie, it's always good to learn about things from different perspectives.
One of the best books I have has examples in Java, C++, and Python.
When I got the book I didn't know Python and hadn't used C++ in years, but that should be no problem understanding what the author is trying to tell. In fact it is a good thing as it enables him to get his point across in the best way possible even if any given language is less than perfect for doing so.

And if you end up programming Delphi for real you may well end up doing C++ and/or C# as well. The days of the monolithic application written entirely in one language are pretty much over as more and more applications are delivered on platforms like .NET, COM+, and Java (which is more than a language, it's an entire platform).
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Dec 2006
Posts: 2
Reputation: Abhijeet Patil is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Abhijeet Patil Abhijeet Patil is offline Offline
Newbie Poster

Re: How do you load a code from pressing another button?

  #10  
Dec 28th, 2006
Originally Posted by JJarvis View Post
Hey, I'm really new to programming and I was wondering how you open a form after pressing a button. Such as, there is a button saying "Start", which, once clicked opens up a guessing game. I know it's probably a one line code but I can't find it anywhere on the internet.

Thanks,


Jordan

P.S. If anyone knows of any new persons tutorals could you please tell me.
Whis programming language you are using?
Mail me at <snipped emil address>
Last edited by Ancient Dragon : Dec 28th, 2006 at 10:57 pm. Reason: removed email address
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Pascal and Delphi Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 5:23 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC