26

(3 replies, posted in Script)

What is wrong?
Edit2 is angle, edit1 should be sinus of this angle.
     

 procedure Form1_Edit2_OnChange (Sender: TObject);
begin
       form1.edit1.value :=   SIN(form1.edit2.value*PI/180 ) ;   
end;

27

(10 replies, posted in General)

Unfortunately, as expected, it does not work on another computer.
It works only in my computer if the file link is:
C:\Users\Marko\Desktop\filedelete2a\gallery\
On another computer cannot save anything to file "gallery" and "storage", using the same file link.
Any suggestion?

28

(10 replies, posted in General)

Hi, Derek,
Is that means the exe will   be working on one PC only, because the path to file is different for other PC?

29

(10 replies, posted in General)

Hi, Derek,
I will attach my project. I just need time to edit and simplify it.
It’s pretty messy right now.
Another interesting fact: when I delete both print-buttons, everything works properly.  It is possible to delete the selected file in the gallery and storage.

30

(10 replies, posted in General)

In both reports ("print all "at form1 and "print record" at form2), I am printing out only photos from Form2.DBImage1.
No any file from storage is included in printing.

31

(10 replies, posted in General)

Related to previous post of Derek:
http://myvisualdatabase.com/forum/viewtopic.php?id=6355
Hi, Derek,
Deleting files from gallery and storage works OK in my project.
But if I add reports (printing) it stops working.
I have a "Print all" at Form1 and "Print record" at Form2.
I can get nice print reports but there is no more possibilities to delete files in gallery and storage. I tried to use both ways for printing: REPORT and REPORT SQL, but no success.
Something during the Report process bothers deleting files or I am doing something incorrect.
Can someone show how should looks like the Derek's  project filedelete2 with Print all and print record included?

32

(13 replies, posted in Russian)

OK.
Thanks.

33

(13 replies, posted in Russian)

Hi, Derek,
I am very grateful for your efforts to help.
I tried your example and it works perfectly.
Now I need time to include it in my project and test it.
But knowing myself, it is very likely that I will make a some mistakes.
It would be very good if I could contact you directly.
In addition, I need to recreate a huge 25-year-old database that can only run with old Windows.  XP is last Windows that can run this database.
I am forced to keep one old PC just to run this database.
I hope there is a way to open this database and eventually turn it into an MVD.
Of course, I am willing to pay for that service.
More information on request.
Thanks again.

34

(13 replies, posted in Russian)

Hi, Derek,
Here is some more explanation on what I need.
I have a two files named "gallery" (for saving photos) and "storage" (for saving other formats, like a pdf, zip, etc).
Photos are stored as LinkFile; Copy to gallery; FieldName: photo.
Other formats are stored as LinkFile; Copy to storage; FieldName: savedfile.
This part seems to be OK.
And I already have a paths to these file in my TableGrid1, (please see an attached screenshot).
I want to delete the both saved files (in gallery and storage) related to the record from the DataGrid1 which should be deleted.
How to do that?
Is it possible with click on delete button by adding some code for the same event?

35

(13 replies, posted in Russian)

Hi, Derek,
Unfortunately, it doesn't work for me for some reason.
If possible, let me know your e-mail to send you my project.
Thanks in advance.
tehnicka-knjiga@tech-center.com

36

(13 replies, posted in Russian)

У меня такая же проблема.

If I give the user a USB with folder including the .exe, what else should be included in this folder?

OK. I managed to find a way to print the report including the image saved in database.
Also, I know the way to store all the saved images in sub-folder named Gallery in order to avoid increasing the size of database, but now  the same task appears:
how to print the report with the image that is stored in sub-folder, instead in database itself?
Is there anyone willing to show me a simple example how to do it?
Thanks in advance.
Marko (tehnicka-knjiga@tech-center.com)

Need two answers, please.
- How to include image in print report ? Image is attached in database as DBImage2.
- This image should be printed in second page of print report  but only if the image exist. That means, no second page should be printed if image is not attached.
Is there any example how to do it?

40

(6 replies, posted in General)

Thanks ehwagner.

41

(6 replies, posted in General)

I tried all three options:
1- right click and Select all.
I can select  all the objects from the form not just several that I want to move.
2- hold SHIFT and click on the object.
I can move just one by one object.
3.- using panel or group box
I can bring to front buttons and textbooks, but not the labels (see the attachment). This option works for me only if the panel is inserted as a first, before of all other objects.
Or I am doing something incorrect.

42

(6 replies, posted in General)

I can't find the way to move simultaneously across the form  a several objects (labels, textbooks etc), while creating a form.
Is that possible?

43

(6 replies, posted in General)

ehwagner,
Thanks.
Works very nice.

44

(6 replies, posted in General)

This works for me:

         procedure Form1_OnShow (Sender: TObject; Action: string);
begin
  Form1.ComboBox1.Items.Add('mm');
  Form1.ComboBox1.Items.Add('inches');

   Form1.ComboBox2.Items.Add('mm');
   Form1.ComboBox2.Items.Add('AWG');
   Form1.ComboBox2.Items.Add('SWG');
   
end;

One more thing.
Is there a possibility for the ComboBox to "remember" previously selected item  each time the program is opened?

45

(6 replies, posted in General)

Thanks.
I thought it was simpler, like in VB.net (add manually or by simple code).
What I need is to create two comboboxes with 3 items each (read only).
Is there something like radio button or list box instead?
Or I need to use the check boxes that is unsuitable for my applications because only one item must be selected.

46

(6 replies, posted in General)

I cant find in the Manual how to add  items to Combobox?

47

(4 replies, posted in General)

For example.
I can open the project Employees (with message that it is old project and some changes may be need to made) but the project Trial I can not open at all (see attached file).
Is that means that old projects are not supported with new version or I am doing something wrong?

48

(4 replies, posted in General)

Version 6.3.
Also, what are the requirements for the several PCs (with Windows  and without MyVisualDatabase installed) on which my future database may be used, as exe file on USB. Are there any limitations?

49

(4 replies, posted in General)

I will try to make the small database that fits my need.
I downloaded a few examples from your web site. Some of them are working but some I can not open at all.
I got an alert (see the picture attached).
Can you tell me what it is about.
Thank you.