ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2024 feature!
Help / WINDEV Tutorial / Tutorial - Creating a WINDEV project and its analysis
  • Lesson 1 - Creating a WINDEV project and its analysis
  • Analysis and project: Definitions
  • Project with analysis
  • Creating the project
  • Creating the analysis
  • To sum up

Tutorial - Creating a WINDEV project and its analysis

Lesson 1 - Creating a WINDEV project and its analysis
We will cover the following topics:
  • Creating a project.
  • Creating an analysis.
Durée de la leçon 5 min
Analysis and project: Definitions
To create an application with WINDEV, you need to create a project. This project contains all the elements required to run the application.
As you develop the application, you may have to handle data. To store the data, you must create a "database".
The first thing you should do in a WINDEV project that handles data is create an analysis. An "analysis" contains the description of the data files containing the application data.
Vocabulary:
A "Data file" corresponds to a "table" in some databases.
When the application is run, these descriptions will be used to create the database and/or the data files. Data will be stored in this database or these data files.
Project with analysis
In this tutorial, we will create and associate a project with an HFSQL database.
WINDEV supports a wide range of database formats. It natively supports HFSQL, a built-in database system. The HFSQL database is available in Local, Network, Cluster, Client/Server (Windows and Linux), Cloud and Mobile versions.
To create an application with a database, you must:
  • Create the project linked to the application. This project will group together all the elements of the application (windows, code, queries, reports, etc.).
  • Create the analysis linked to the project. The analysis is used to describe all data files handled by the application.
Creating the project
To develop any application with WINDEV, we need to create a project.
To create a project, simply follow the steps of the project creation wizard:
  1. Open WINDEV and go to the home page (Ctrl + <).
  2. On the home page, click "Create a project" and select "Windows or Linux application". The project creation wizard starts. The different steps of the wizard will help you create your project.
    The information specified in this wizard can be modified later.
  3. The first step of the wizard allows you to select the operating system for which the project is intended. Select "Windows platform" and proceed to the next step of the wizard.
  4. For this lesson, we are going to create a "blank" project. Select "Create a blank project" and proceed to the next step.
  5. The wizard then prompts you to select the platform options. Keep the default options ("64-bit Windows executable" and "Executable with windows"). Proceed to the next step of the wizard.
  6. Select the string format to be used at runtime. For this lesson, keep "Use ANSI strings at runtime". Go to the next step.
  7. The wizard prompts you to enter the project name, location and description. In our case, name the project "WD My First Database".
  8. By default, WINDEV creates this project in the ".\My projects\WD My First Database" directory. You can keep this location or change it via the [...] button.
    Project creation wizard
  9. The different steps of the wizard appear on the left. These steps can be clicked directly. Since the other steps in the "Description" are not strictly necessary, you can click "Guidelines" directly.
  10. In this step, you can first choose the code style. Keep the default options and click "Next".
  11. The wizard then allows you to choose the style book. Select "Eleven".
    Project creation wizard - Style book
    Go to the next step.
    The style book is defined based on skin templates. Skin templates allow you to quickly create outstanding interfaces. A skin template defines the window style as well as the style of all the controls that will be used in the window. Thus, the interface will always be cohesive and beautiful.
  12. Click the "Database" step. We are now going to specify the information regarding the database.
  13. Select "Yes, create a new database" and validate. The analysis creation wizard starts.
Creating the analysis
Now, let's take a look at the steps to create the analysis:
  1. Specify the analysis name and directory. By default, the analysis name corresponds to the project name and the analysis directory is a ".ana" directory in the project directory. Keep the default parameters.
    Analysis creation wizard
    Proceed to the next step of the wizard.
  2. Next, you can choose the types of databases used by the project. Select "HFSQL Classic".
    Analysis creation wizard - Selecting the database
    Proceed to the next step of the wizard.
  3. Validate. The data file creation wizard opens automatically.
  4. Close this wizard. In the next lesson, we will look at the different ways of creating a data file description.
To sum up
In this lesson, we have covered:
  • the role of the project in the application creation process.
  • the main steps to create a project.
  • the main steps to create an analysis.
  • etc.
The next lesson of this tutorial will present the different methods available to define a data file in the data model editor. You will also learn how to define links between the various files in the analysis.
To learn more, see the following help page: Creating a WINDEV project. This help page explains all the options in the WINDEV project creation wizard.
Table of contentsNext Lesson
Minimum version required
  • Version 2024
Comments
Click [Add] to post a comment

Last update: 12/01/2023

Send a report | Local help