26

(25 replies, posted in General)

Sorry sparrow, i didn't understand.

27

(25 replies, posted in General)

Now if you also tell me how to save the 0s in front of a number in an integer (I tried real too) field because I tried everything but I couldn't. If I write 00123 he saves 123.
I am very grateful to you.

28

(25 replies, posted in General)

Hi derek and sparrow,
first of all thank you as always, then I am always amazed by what you manage to invent. Getting around that obstacle with that button system is amazing and I also liked the ShowModal property instead of Show to show the form.

29

(25 replies, posted in General)

Ciao Domenico, grazie per la risposta. Questa cosa di più pulsanti di salvataggio nello stgesso form non l'avevo proprio immaginata. Cercavo di farlo più minimale possibile ma dovrò per forza aggiungere qualche form. Mi sembrava una buona idea quella di avere tutti gli inserimenti in una sola finestra ma dovrò adattarmi.
Già che ci sono vorrei chiedere un'altra cosa: siccome nella tabella 'Azienda' ci andrà solo un unico record sono i dati relativi alla propria azienda, quale potrebbe essere il miglior modo per, diciamo, "bloccare" la tabella ad un unico record? Cioè una volta inseriti i dati dell'azienda si possa solo modificare i dati e non che venga creato un altro record.
----------------------------------------------------------------------------------------------------------------
Hi Derek,
I hadn't thought that even though I put a TableSheet things are not divided but the form remains the same. It seemed like a good idea to have all entries in one window but I'll have to adapt. Thanks for the explanations and the possible alternative.
While I'm at it, I'd like to ask something else: since only a single record will go in the 'Company' table, it's the data relating to your company, what could be the best way to, let's say, "lock" the table to a single record ? That is, once the company data has been entered, it is only possible to modify the data and not create another record.

30

(25 replies, posted in General)

Hello everyone, as always, thank you for your interest in my problem.
I'm doing a new project and right away I have a couple of problems that I can't answer.
The first concerns the opening of the 'frmAvviso' form which starts at the top left instead of in the centre.
The second is a fact that I consider inexplicable and I don't understand how to solve it: in the 'frmImpostazioni' form, going to the third and last tab (Prodotti) I inserted a button to add products. It doesn't open the input form and on the contrary it always gives me the popup that indicates that the field is mandatory within the TableGrid and it doesn't form that it should.
Thanks everyone for the help.

31

(8 replies, posted in General)

JONYXXX wrote:

I want a way to use this option through XAMPP program

The way is to install MySQL on the same computer or on another one that acts as a server, choosing MyVisual Database MySQL instead of SQL Lite, as you showed in the image and as you did in your project.
The only thing I didn't understand is if you need to know how to configure MyVisual Database or if you need help with MySQL. Xamp already has everything you need.

32

(8 replies, posted in General)

pavlenko.vladimir.v wrote:

Create a folder, put the program in it, share the folder
 
Создайте папку, поместите в нее программу, расшарьте папку

Hi all,
If I'm not mistaken, this very simple method does not allow the use of the program by multiple users at the same time.

33

(32 replies, posted in General)

Hi derek and sparrow,
thanks for the explanations and the always very interesting methods.

34

(32 replies, posted in General)

By doing other tests, after I wrote the post, I discovered that the described behaviors occur even if you don't set the cancel buttons are set without a confirmation request. Practically it happens that if you select a record from any tablegrid and exit the tablegrid with the mouse entering another tablegrid (without keeping the record clicked), the record passes into the tablegrid where you enter with the mouse.

35

(32 replies, posted in General)

Hi Derek,
I have seen your project, beautiful as always.
I'd like to let you know what I've discovered and maybe if you make corrections, explain to me what was wrong.
In the delete buttons you have chosen not to ask for confirmation to delete the record. Instead, I set each delete button to ask for confirmation.
Here is how the program behaves at this point:

1) if you create a task in the first tablegrid, select the record and then exit the tablegrid with the mouse, the record moves to the second tablegrid. If you then select the record, passed into the second tablegrid and exit the second tablegrid with the mouse, the record returns to the first.

2) if you create a record in the second tablegrid it is saved in the fourth. Not always but most of the time.

3) if you delete a record from any of the first 3 tablegrids and when asked to confirm the deletion you say no, the record moves to the fourth tablegrid

36

(2 replies, posted in General)

Hi sparrow,
that's where the mystery was. A thousand thanks!

37

(2 replies, posted in General)

Hello everyone and thank you for your interest in my question.
In the Italian language in many cases the apostrophe is used between the articles and a word.
We know that in Pascal the apostrophe is used to enclose text, so if there is an apostrophe in the text you should, in theory, put a double apostrophe after the word that has the apostrophe in front of it.
Take for example this sentence: "Elimina l'immagine".

edit1.text := 'Elimina l'immagine''';  //three apostrophes after the word with the apostrophe in front

In this case it writes " Elimina l'immagine' ", i.e. with an apostrophe also at the end of the word. If I put only two apostrophes at the end of the word it gives me an error.
Would someone be kind enough to explain the method to me?
Thanks and greetings to all.

38

(21 replies, posted in General)

I also made this other discovery.
If I put the word è in MVD "script" the word is written correctly, if I do, let's say, take it from the .pas file the word instead becomes a strange A that I can't find in the character map, while the word "Sì" becomes "Sì"

39

(21 replies, posted in General)

Hi sparrow, of course everything is ok, in the end the result is achieved, but I will always have the doubt as to why pieces of code work in certain situations and not in others.
Also the photo control in DB, in another project I translated it without problems and in this one it does as it wants.
Thanks anyway because you always help me too.

40

(21 replies, posted in General)

Sorry sparrow and thanks for all the time you wasted writing that file. I hadn't noticed your attachment and now that I've seen and tried it I see that it works perfectly.
Only that I'm a curious guy and I have to figure out where I'm wrong, I hardly give up. I am always very grateful that you waste time, even a lot, making corrections but I would also like to understand them.
With my file, in addition to the startup error, half the tablegrids are translated and half are not and this is totally confusing me. Then in the other project it works and in this one it doesn't, total confusion.

41

(21 replies, posted in General)

In this case, if I put the code between "Begin" and "End." it gives me the same error you get when starting up. Then the program starts anyway and the some tablegrid not all are translated but at every start it opens that error window. Up to the "Caselle di posta" tab are translated, the following ones are not.
I checked and double checked and the identifiers should be right, then with all this code I might as well have gotten lost and wrong.

42

(21 replies, posted in General)

sparrow wrote:

I should have warned you and you decide.

Here is your project with an error on my computer in which the language is not English.

Hi sparrow,
as you can see even if you don't start the "Laboratorio" program, in the "tableg.pas" file there is no "procedure" instruction and yet when you start it there is no problem and the TableGrids are translated regularly. I don't understand why in the other project they are not translated.

43

(21 replies, posted in General)

Thanks derek, the menu that appears on hover is very very beautiful!
Can you also give me an explanation why I can't translate the tablegrid and the image in db?

44

(21 replies, posted in General)

Hi sparrow,
I don't get this error.

45

(21 replies, posted in General)

Hi derek,
thanks for the clarifications and also for, let's call them, tricks like hiding all the controls by simply placing them in a panel.
Hi sparrows,
Windows is in Italian. I'm getting a little confused trying to figure out what's going on. For example, in the project I am attaching, I created a file to translate messages in tablegrids in the same way and, as you can see, without using £procedure" yet the translation works.

46

(21 replies, posted in General)

Hi derek and sparrow,
I'm here again. I added more .pas files for tablegrid (tableg.pas) and Photo in DB (dbphoto.pas) translations.
I seem to have done everything right, there are no startup errors but all tablegrids and the Photo control in DB which is in the form 'frmDipendenti' are not translated and I really can't understand why.

47

(21 replies, posted in General)

Hi sparrow,
thank you very much for describing the structure to me. I edited the file successfully. Really thank you very much.

48

(21 replies, posted in General)

Hi Derek,
As always, thank you very much for the intervention and the always decisive explanations.
Could you please tell me how to understand if a control is parent of a groupbox or a panel?

Also one more thing kindly derek: I made a change to the project to use an external .pas file for user management window translations.
When starting the program I get an error (expected ;). I think the problem is on the external file "Utenti.pas" but despite several changes I tried to make I could not correct the problem.
Thank you.

49

(21 replies, posted in General)

Hello everyone and thanks for your interest in my problem.
In the attached project, in the "Start" form, in the "Caselle di posta" Tab there are two editboxes: "edNomecasellaposta" and "edCognomecasellaposta".
I can't change the tab order in any way for these two editboxes. In the attachment I have also included a screen shot to help those who don't speak Italian better understand it.
Thanks to all and greetings.

50

(2 replies, posted in General)

Hi Jonyxxx,
if I understand correctly it's the same thing I asked derek in this thread: http://myvisualdatabase.com/forum/viewtopic.php?id=8543 post number 10.