Posted on 2012-09-17
Last Modified: 2012-10-23
I have a delphi project with version
there is a main form and a command button ( Button1).
On click of button1 a form lets say form1 opens where i have few fields.

Now i need to add another form lets say form2, so on click of button1 now form2 shall open and from form2 form1 shall open.
There are some changes in form1 as well.

So i shall need to release another version

But client needs some flexibility to switch on/off on versions by which they can work on version 1 and 2 as well on need basis.

How to give this kind of options?

Kindly Response with code example.
Question by:AbhiJeet
    1 Comment
    LVL 25

    Accepted Solution

    You can set version option somewhere in .ini file or database. At application startup get this option and check it. If is ver1 then on menuitem (or button click) start form1 (older type) or if it is ver2 then call form2 (similar (duplicate) to old form1 but with changes) which can call then form3,...

    if  OptionVer = 1 then
    if  OptionVer >= 2 then

    Open in new window

    ... or you can create plugin like application (each dll - new functionality)...

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    This video discusses moving either the default database or any database to a new volume.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now