1

Topic: The help with the program

Hello. I am engaged in creation of the program and it is impossible to solve the task. Prompt please how it were possible to implement the prohibition of data input which are already entered? We admit it is necessary to reserve the ticket and to forbid to sell tickets with this data. But it is necessary as also ticket reset if something happens. Thankful in advance

2

Re: The help with the program

Well so all is very simple, it is necessary to check up, whether this data was entered already earlier, and if was entered not to enter them anew.

3

Re: The help with the program

3 3 x

4

Re: The help with the program

Roman Mejtes wrote:

3 3 x

I use sql

5

Re: The help with the program

Shocker. Pro wrote:

Well so all is very simple, it is necessary to check up, whether this data was entered already earlier, and if was entered not to enter them anew.

Only I have no concept, as it in the code will look

6

Re: The help with the program

fantanol wrote:

as it in the code will look

CREATE>>> UNIQUE <<<INDEX

7

Re: The help with the program

fantanol wrote:

I use sql

sql is language

fantanol wrote:

only I have no concept, as it in the code will look

it sad. Possibly, it is necessary for you to address with the order to the programmer.

8

Re: The help with the program

fantanol wrote:

I Am engaged in program creation...

What your role?
And yes, if be not able to work from a DB:
- Study, if undertook to be the executor;
- Employ someone, if you the customer.

9

Re: The help with the program

by-pass wrote:

it is passed...
What your role?
And yes, if be not able to work from a DB:
- Study, if undertook to be the executor;
- Employ someone, if you the customer.

I do course for myself. Already created the main tables for operation with  (the ticket, a film, a session and other necessary)
Various functions for operation with tables (removal, input, search) work
But how to implement tasks which described above, no concept I have

10

Re: The help with the program

It was necessary to begin with it. Or we should guess about a DB?
It is necessary to ask a specific question - what exactly not clearly.

11

Re: The help with the program

Shocker. Pro wrote:

it was necessary to begin With it. Or we should guess about a DB?
It is necessary to ask a specific question - what exactly not clearly.

How to make  the ticket and reset.
At me generally thoughts are not present, as it is all can look and with what to begin operation.
If to create the table for the ticket armor. That as given to transfer from the main table in the table ?
And on sense, at me the main table and the table  will be identical.
The item with. The main table - my information on the ticket.

12

Re: The help with the program

Once again - the information has not enough.
That is necessary for you, it is possible to make one hundred various methods.
That at you already is, from what to be repelled - you carefully hide.
Generally, paint algorithm (, those  and  with  to which you learned), and will shift then algorithm in the code. Algorithm of one rectangle "to make  the ticket" does not suit anywhere.

13

Re: The help with the program

Generally normally to write the program it is accepted from it
3 x it is possible and not 3, 3 3 x, chtenie/3apis, variants the sea, for course 3 x it is necessary not especially, but there will be + for x who it will estimate.
3 a small board, I can to you all 3 and about? ) to do free of charge another's course here is not accepted. But if the person has a problem here always are glad to help, it is necessary only to begin with correctly 3 a question. And this question not  to be "As to me to make the course?"

14

Re: The help with the program

Methods of implementation of tasks which have been written above I already found.
But now there was other problem. As at me sale of tickets at cinema it is necessary to implement possibility to specify the price. We admit there are two forms. On 1 I specify the price for a certain number/genre/session. On 2 I select a number/genre/session and at me depending on a choice of these parameters the price which undertakes with 1 will be formed.

15

Re: The help with the program

Screen

16

Re: The help with the program

Possibly, you wait for any answer. But you did not set a question.

17

Re: The help with the program

Shocker. Pro wrote:

it is probable, you wait for any answer. But you did not set a question.

How to make that the price specified on the form 1, it was added on the form 2 later?
In more details I described above

18

Re: The help with the program

Possibly, it is necessary to save the price specified on 1, and then to derive it by operation 2. So it, in my opinion too obviously, probably a question at you in something the friend.

19

Re: The help with the program

Shocker. Pro wrote:

it is probable, it is necessary to save the price specified on 1, and then to derive it by operation 2. So it, in my opinion too obviously, probably a question at you in something the friend.

In it and a question)
Anything else

20

Re: The help with the program

Actually here it is necessary to do on template Wizard' when there are certain  object over which means of forms you carry out influence.
Roughly speaking is , you create it (as instance object),
Then create or open a window with this object as parameter (1 window from which the user selects a session)
After the choice is completed or the user pushed what that the button (type further), the form (in which this object has been transferred through a method or even the designer) changes value of properties of this object for set and is closed.
Now the form opens 2 and in this form we transfer all the same object (which transferred in 1 the form).
In the second form the functional, as in the first etc. is done what that
Then we open 3 form in which as we transfer all the same object and on the basis of its properties, according to your algorithm it is calculated its cost. And then, if it is necessary, we save this essence in a DB that at any moment of it from there to get. With all checks and an other beard as you wanted.
Why it is impossible to make all it in 1 form, for me a riddle.
And I, as understand, you simply create as that objects, and then puzzle as them to transfer from the form in the form smile)

21

Re: The help with the program

Roman Mejtes wrote:

And I, as understand, you simply create as that objects, and then puzzle as them to transfer from the form in the form smile)

It is possible and to make in one form. Simply thought not to block up the form.
You it is finite well all painted) but I more at the sight of the code understand, than through algorithm of actions.
If I found something similar would not disturb you