101

(2 replies, posted in General)

Hi,
I have a strange problem!
When I make a new record! if click on Print (Report) button before saving it! it will save item in database!!! (No problem)
The problem is when I click on save button , it will duplicated !
So how can I prevent this ?! (Please check attachment for project files - report file corrupted! please remove or replace it!)
Thanks a lot

102

(6 replies, posted in General)

Thanks a lot smile

103

(6 replies, posted in General)

jean.brezhonek wrote:

Hello sonixax

Not enough informations about your application
.
How many tables have you created ?
How many side tables ?

Do you use pictures in your main table ?
If yes, how are they stored in the table (StoreFile or LinkFile) ?

Also, what is your PC OS ?

Thanks for all your answers, then we shall be able to help you.

JB

Hi,
I have only 2 tables!
And no I do not have any pictures in my tables!
I have 3 PC's , One of them running windows 8.1  anothers running windows 7!
The PC with windows 8 using 2X Xeon E5-2620 with 32GB of ram! another PC's using I7 as CPU with 16GB of ram! (all of them have SSD)
in all of them after about 2500 records inserting is going slow! I don;t know why sad my database file size is only 250KB!!!!

tcoton wrote:

How do you insert data in you database? Which size is your SQLite.db file?

Which method? Do you use specific scripts? Do you have an antivirus checking on access files?


@Dmitry

There is a very interesting post here, at the end: http://stackoverflow.com/questions/3852 … -very-slow

Is it enabled in MVDB?

I do not know! I just using MVDB!
Please check attached file for project files! (There is nothing in Database because All of data's are Private)

104

(6 replies, posted in General)

Hi,
I've just made a database software using MVDB! Everything works fine unless i reached to 2500 records!
now my DB is so slow ! and I should wait about 10 sec to save every new record!
so how can I solve this problem ?!
Thanks a lot smile

105

(3 replies, posted in General)

Thanks a lot smile

106

(3 replies, posted in General)

?!?!

107

(1 replies, posted in General)

This code is not working on calculated field :

(
(services.cost / 1.19) - services.cost
)

What is the problem ?!
I want to calculate TAX and save it in database!

Thanks a lot

108

(3 replies, posted in General)

Hi,
I want to edit Invoice Project (which is available for download in samples).
I need to add is an Invoice number in this format (Year/Integer)
my current number is 200!
so I want to have Invoice numbers from (20158/200) !!!
And also I want to calculate Taxes and save them in database! (19%) That's all
How can I do that ?!
Thanks a lot smile

109

(5 replies, posted in General)

it is not working when i use this format :

user 1
user 5
user 4
user 2
...

but it is work with this format :

David
Jones
Martin
Andy
...

110

(5 replies, posted in General)

Thanks , but Ive test it before! it does not work sad

111

(5 replies, posted in General)

Hi,
I need to know how can I sort Combobox options by name (ASC) ?!
Thanks a lot

112

(3 replies, posted in General)

Please add ability to set custom icons for buttons smile

113

(4 replies, posted in General)

Thank you smile

114

(4 replies, posted in General)

Thank you smile and how can I Clear ComboBoxes ?!

115

(4 replies, posted in General)

Hi,
I need to restart the form (Clear all fields values) after click on save without closing the form to add new record!
how can i do that ?!

116

(11 replies, posted in Reports)

Hi,
Dear Dimitri did you Received My Email ?!

117

(11 replies, posted in Reports)

Dear Dimitri ,
I cannot Understand this Script and how it works !
I cannot get values in Report designer side!!!
Also I do not know how can I wok with Cross component sad

118

(11 replies, posted in Reports)

Should I Use scripting like this ? :

procedure frxReportBeforePrint(Sender: TfrxReportComponent);
var
  Cross: TfrxCrossView;
  x, y, cx, cy: Integer;
begin
  if Sender is TfrxCrossView then
  begin
    Cross := TfrxCrossView(Sender);

    // Columns name
    cx := Form1.GridEmployees.Columns.Count - 2;
    for x := 0 to cx do
          Cross.AddValue([-1], [x], [Form1.GridEmployees.Columns[x].Header.Caption] );

    // data
    cy := Form1.GridEmployees.RowCount - 1;
    for y := 0 to cy do
      for x := 0 to cx do
        Cross.AddValue([y], [x], [Form1.GridEmployees.Cells[x,y]]);
  end;

end;



begin

end.

119

(11 replies, posted in Reports)

Hi,
Is it possible to use Grid Results Directly in Reports ?!

Because I do many math with scripts to Grid result and it is near to Impossible to do all of them again in Report!

For example I have a ComboBox in my Project,

If the combobox Select number one , and first column of any row is not equal to ComboBox Text, then my script set those values to negative!

so, It is easier to have Grid results Directly into the Report!

120

(16 replies, posted in Script)

Oh, Thanks a lot
And what is the correct code for Footer text color ?!

121

(1 replies, posted in Script)

Hi,
I have two type of products in my Grid! that I show them with 1 and 2.
I want to SUM the values of type 1 and two in separate vars! and then show them in a text label !
In "C" like Syntax we can use this += in a loop (For,Do,While) but i Don't know how can i do that in Delphi!
For example in PHP we can use something like this :


<?php
$arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
    $value += $value;
}
echo $value;
?>

Can we do the same in Delphi ?!

122

(9 replies, posted in General)

Thanks a lot

123

(16 replies, posted in Script)

Hi,
This is the question! how can I change Grid Text Color ?!
(Not the Cell BG Color)

124

(9 replies, posted in General)

Hi,
How can I have Radio buttons on MVDB ?!
Thanks a lot

125

(3 replies, posted in Script)

and pics for person 2