To learn programming, we will need 1C 8.3 (at least 8.3.4.482).

If you have 1C version 8.3 installed, use it. If not, download and install the educational version, which 1C produces specifically for educational purposes.

Task Ml. Download and install the educational version of 1C 8.3.

Instructions to follow:

  • 1. Unpack the archive downloaded from the link into a separate folder on your desktop:
  • 1.1. Dropbox download link (Nsl option) https://www.dropbox.eom/s/t69xyrrhsdugfzf/lC_Predprijatie_ 8.3_uchebnaja_versija.zip?dl=l
  • 1.2. download link from Mail.ru (option N°2) https://cloud.mail.ru/public/59a9a532864d/lC_Predprijatie_8.3_ uchebnaja_versija.zip
  • 2. Run the "setup.exe" file.
  • 3. Click Next, Next, Install.
  • 4. Wait for the installation to complete.

After completing Task No. 1, the following shortcut should appear on your desktop (Fig. 1):

Company ( educational version)

Rice. 1. Launch shortcut 1C:Enterprise

First program

This has already become a tradition for programmers - studying new language, the first thing written on it is a program that prints the phrase “Hello, World!” on the screen.

Let's force the computer to display this phrase in Russian "Hello, World!" on the screen.

Task No. 2. Write a program in 1C 8.3 language that, when launched, displays the phrase “Hello, World!” on the screen.

Instructions to follow:

  • 1. Launch the "1C:Enterprise" shortcut on your desktop.
  • 2. A list of 1C databases has opened in front of you (Fig. 2). As you can see, it is empty. Let's create a training base in which we will program. Click the button "Add".
  • 3. Select an item and press the button "Further"(Fig. 3).
  • 9 sch Adding an information base/group X

Rice. 3.

4. Select an item ..." (Fig. 4) and press the button "Further".


Rice. 4.

5. For the database name, enter "Training"(Fig. 5) and press the button "Further".


Rice. 5.

6. Specify any empty folder as the base directory (in this case it is the “Training” folder in my documents (Fig. 6)). Click "Next".


Rice. 6.

7. Specify authentication option "Select automatically" startup mode "Fat client" For version 1 C:Enterprise, do not specify anything, click the “Finish” button (Fig. 7).


Rice. 7.

8. As you can see, the first database that we just created ourselves has finally appeared in the list (Fig. 8)! Let's start writing code. Click the button "Configurator".

Rice. 8.

9. In the window that opens, select from the menu "Configuration" paragraph "Open configuration" (Fig. 9).

Configurator (educational version) - Configurator

Rice. 9. Selecting a menu item "Open configuration"

10. In the panel that opens on the left, click right click mouse on ""Configuration" and select from the list ""Open Managed Application Module"(Fig. 10).

Configuration

Actions» f/ | X and 4

© *? General _For KrnSiami!.

Configuration

^ Open Managed Application Module Open Session Module

Rice. 10. Selecting "Open Managed Application Module"

11. A window with an editor has opened (Fig. 11). You can write text here! We will work with him in the future.

Rice. eleven. Managed Application Module

12. Copy the following text into this window (Fig. 12):

Report("Hello World!");


13. The code for our first program is ready. Let's run it. Through the menu " Debugging" "Start debugging"(or /’i key) (Fig. 13).

Di Configurator (educational version) - Configuration

i file Edit Text Configuration Edit Advanced Tools Windows Help

10 сЗІїХ *

and in &d t? ©»і a a i //

[Koifiguradoya *

Actions?

KoiFigurasha

$ O# General 8? Constants 1111 Directories ® C] Documents

Document logs (..) Retransition

Configurator (educational version)

L The edited configuration is different from the database configuration. Update database configuration?

....................

Rice. 13. Running the program for execution

14. We will answer the question in the affirmative.

15. After a second or two, 1C will start and the message “Hello, World!” will appear in the window below. We achieved what we wanted from the computer; our first program started working (Fig. 14).

Messages:

Hello World!

Rice. 14. Program results

Greetings, dear readers of my blog. It's been a long time since I wrote lessons on any programming languages. Needless to say, time is truly the most valuable resource and you have to enjoy every free minute.

However, I am somewhat liberated now. My goal is to finish all my started lessons to their logical conclusion. I hope everything goes according to plan this time.

Since people often write to me asking me to post lessons on programming in 1C Enterprise, I decided to complete the series of lessons on this DBMS that I had once started. True, this will be more like an express course, although in it I will also touch on all typical configurations.

So, if you are ready to start programming in 1C Enterprise, let's get started. So that you understand a little what we will do, I will conduct a small educational program as part of this lesson.

Two years ago I wanted to start a series of lessons on 1C and wrote an article. Over the past time, a lot has changed. In general, I warn you right away that in the 1C world you will generally have to constantly learn. Knowledge from two months ago will no longer be relevant today. Of course, this generally concerns the sphere IT , but due to the realities of the domestic economy, 1C is more vulnerable.

For those who did go to the above article, I can say the following - the only thing that will be useful to you now is the creation of an information base. At that time, I gave an example from 1C Enterprise 8.1 with the transition to 8.2. However, time does not stand still and the 8.2 platform has already lost its relevance and everyone is switching to the new 8.3.

Some of my impressions of this platform. Of course, everything described will be a purely subjective opinion, because I have never been a specialized 1C programmer (after all, it is not interest that drives me into this field, but the opportunity to easily earn quite good money). However, from platform 8.3. I am delighted.

Surely you have worked with platform 8.2. As you know, two operating modes were introduced there - normal application(the same as in previous versions, for example, configuration UT 10.3) and the so-called managed application, in which the user was offered to work with an advanced interface that he could adjust to his needs. An example of such an interface is the UT 11 configuration.

For developers, there are pitfalls lurking here in the form of features of a managed application. The code was complicated by the fact that in the form module it was practically impossible to do anything from the capabilities of the platform. Some actions with platform mechanisms had to be done separately using a directive &On server and then call these subroutines to &OnClient. However, many things were done very conveniently. It was well thought out that even after writing the configuration with the addition of the necessary application objects, there was no need to worry about the appearance of the resulting application. The platform itself created an attractive appearance, which then simply needed to be finished to suit your own needs.

The 1C Enterprise 8.3 platform in this regard is similar to its predecessor. However, she has a lot of differences. When I launched this platform for the first time, I was literally stunned by the speed of the program. She was amazing! The usual 8.2 brakes on my not so powerful laptop with dual core Core i 5 to 8.3 disappeared altogether, which is good news.

The platform has been revised towards multi-platform. Now it was possible to access it from devices based on Android and iOS . Considering that the program is used a lot in trade, sales representatives will really appreciate it this opportunity. The server version of the platform is now available on Linux, and without the traditional dancing with a tambourine.

Of course, there were some embarrassments here too. Because of mobile gadgets some functions no longer work as before, as a result of which we have to rewrite those that worked well in previous version configurations.

Overall, the platform is very promising. It really feels good to write in it, which I haven't experienced before on previous versions.

Therefore, in this master class we will use 8.3. Since my 1C customers are either sellers of auto parts or owners of cafes and restaurants, I will use the example of a simple configuration for automating these areas to teach you programming on the platform.

In addition, I will also show how standard configurations are usually finalized, for example, BP, UT and ZUP (I have never worked with UPP and Kompeksnaya, and I don’t want to, to be honest).

For successful training, you will need to get the 1C Enterprise 8.3 platform. The educational version is also suitable, you can download it

For those who like to watch videos, I can suggest going through free videos programming lessons in 1c

You can create your own information base as in the lesson described above, or wait for the next lesson, where it all begins. That's all for now.

MINISTRY OF EDUCATION AND SCIENCE OF RUSSIA

Federal state budget educational

institution of higher professional education

"PENZA STATE UNIVERSITY"

A. E. Khokhlov

Fundamentals of programming in the 1C: Enterprise environment

Penza, 2016

UDC 631.3 (075)

REVIEWER:

Head of the Department of Applied Informatics

Penza State Technological Academy,

Professor Remontov A. P.

Khokhlov A.E.

X86 Basics of programming in the 1C: Enterprise environment: Textbook / A. E. Khokhlov, E. M. Golobokova, Yu.V. Teryakova - Penza: Penz Publishing House. state Univ., 2015. – 144 p.

The tutorial allows you to master the techniques of developing and modifying application solutions on the 1C: Enterprise 8.3 platform. Using the example of creating a real application solution, the structure of various system objects, their purpose and method of use is shown. Procedures are presented in the built-in language, including using the query language.

UDC 631.3 (075)

© Khokhlov A.E., 2016

© Penza State University Publishing House, 2016

2.1. Composition of the program system "1C: Enterprise 8" 7

2.2. Configuration structure 9

2.3. Architectures of the 1C: Enterprise software system 12

3. Object model of the 1C: Enterprise platform 18

7. Registers 75

Introduction

The program system "1C: Enterprise 8" is designed to automate the activities of enterprises, organizations and individuals. The system is based on a flexible technology platform, the capabilities of which allow you to create and modify a wide variety of business applications.

The main feature of the 1C: Enterprise system is its configurability. Technology platform "1C: Enterprise" is a set of mechanisms designed to manipulate various types of objects subject area. A specific set of objects, structures of information arrays, information processing algorithms are determined by a specific configuration . Together with the configuration, the 1C: Enterprise platform acts as a ready-to-use software product aimed at certain types of enterprises and classes of tasks to be solved.

The functioning of the system is divided into two processes:

    configuration (description of the domain model using the means provided by the system),

    execution (processing of domain data).

The configuration process, in turn, breaks down into several components:

    “visual” creation of a configuration structure (configuration objects such as directories, documents, etc.),

    setting up dialog forms of objects,

    determining the specific behavior of objects, forms (writing code in the system language in certain places in the configuration),

    creation of interfaces, sets of user rights (roles).

During execution, the system already operates with specific concepts described at the configuration stage (directories of goods and organizations, invoices, etc.).

The tutorial provides an example of developing a configuration on the platform edition 8.3.6.2014 (training version).

The educational version or the version for teaching programming can be downloaded from the site http://online.1c.ru/catalog/free/learning.php

"I think everyone should learn
programming because it teaches
people to think" - Steve Jobs (Founder of Apple)

ABOUT The basics of the 1C 8.3 programming language presented in the lessons below are intended for beginner programmers. For those who have not programmed in other languages ​​before. For those who have a 1C language, this is the first on their list.

If you already know 1C at some level, then perhaps it is better for you to immediately move on to the exercises () for advanced ones.

ABOUT Usually such people are quite experienced 1C users. They are well versed in one of the subject areas. These include implementers, consultants, and chief accountants. They have already reached such a level in their profession that they are beginning to master related ones.

AND this is correct, because knowledge of the basic fundamentals of programming will allow a specialist in any subject area to reach new heights in their field.

N For example, an accountant who knows the basics of programming and configuring 1C will be able not only to automate his activities without the help of programmers, find errors and understand why the program produces a particular result. But if he needs the help of programmers, he will be able to speak the same language with them. Set tasks wisely. And this is already 50% success.

AND So, you have decided to master the profession of a 1C programmer (or at least its basics) and don’t know where to start? Confusion at this stage is quite understandable. And here it is useless to go into the configurator and immediately try to create new directories, documents and other objects that are created with the mouse.

WITH The most important thing you need to do is to understand the essence of programming. Grasp the very principle of program execution. And to do this, you don’t need to create new objects in the database, but learn the basics of the 1C 8 programming language itself. And everything else will follow later and will be learned quickly and easily.

So, let's begin!




No. 4: variable names in 1C
No. 5: simple logical expressions in 1C
No. 6: complex logical expressions in 1C
No. 7: conditional command in 1C
No. 8: cycles in 1C part 1
No. 9: cycles in 1C part 2
No. 10: combination simple designs in 1C
No. 11: arrays in 1C
No. 12: structures in 1C
No. 13: functions and procedures in 1C part 1
No. 14: functions and procedures in 1C part 2
No. 15: debugging in 1C
No. 16: 1C syntax assistant
No. 17: working with dates in 1C
No. 18: mathematics in 1C
No. 19: format in 1C
No. 20: using dialogues in 1C
No. 21: list of values ​​in 1C
No. 22: working with strings in 1C

Hello dear readers.
Today I will share personal experience in mastering professions, I want you to avoid what I went through and accelerate in your professional growth.

Profession 1C Programmer– attracts people who want to work according to their calling in the field information technologies and automation of enterprise business processes. 1C Programmer is in demand today, short review and I made thoughts about this in the article: Becoming a 1C Programmer.

To become a 1C Programmer you need:
1. Have a desire
2. Be patient
4. 1C program required
5. Housing and communal services (Yellow-red books) and 1s courses
6. Practice, practice and more practice
Let's look at everything in more detail.

I want to become a 1C programmer

You wanted to become a 1C Programmer, no matter how you came to this, the main thing is the desire and it is unshakable. For example, for a long time I didn’t know what I wanted to do: administration, website development or trading, and I came to 1C when I was system administrator.

Start learning 1C

1. We need the 1C program, for starters it will do, you can download it or buy a box along with the LZhK.
2. These courses are no matter what they are and no matter what anyone says, they are needed.
Firstly, it reduces the training time by more than half, and secondly, the courses stimulate.
I studied 1C for two years without any courses, work (worked as a system administrator), home, family, and there was no time left for 1C.

You can find official 1C courses on the 1C website, 1C Courses - training and preparation for exams

But I would recommend the courses Evgenia Gileva and Farita Nasipov “Professional programming in 1C:Enterprise 8.x”. To get started, go to the website, read the materials and judge for yourself how you like it this course.

If you decide, sign up for the course. "1C:Programmer - Quick start to the profession", this course is worth it and during its completion you will definitely know whether it’s for you or not.

3. You purchased 1C:Enterprise 8.2. Version for learning programming" and ZhZK, signed up for courses, then immediately begin preparing for the certificate.

If you don’t know what programming is at all, then this is the place for you.