Posts by Felipe Neiva • 49 points
4 posts
-
0
votes1
answer249
viewsQ: Calculated field is not editable in dbgrid
I have a DBGrid, one FDQuery and a DataSource that bring values from a table. In this FDQuery I created a calculated field of the type Integer called mult. The purpose of this field is for the user…
-
1
votes1
answer155
viewsQ: Run Oncalcfield only when pressing [Enter]
I have a DBGrid which searches several records recorded in the table just when the form is opened, this should show exactly everything that has saved in the table. There are some fields calculated…
-
0
votes1
answer175
viewsA: Calculate date without counting weekends and holidays
Following the @hkotsubo tip, I developed the following code that solved my problem: procedure TformPrincipal.QueryProjItemCalcFields(DataSet: TDataSet); var dtFim: TDateTime; duracao: Integer; begin…
-
1
votes1
answer175
viewsQ: Calculate date without counting weekends and holidays
I’m needing to calculate future dates through a number of days, but you should not count the weekends and holidays. Take the example: The project starts on 01/01/2020 and lasts 25 days, that is, it…