yeah,,,,
can I also by script change the screen result??
126 2022-08-01 07:34:33
Re: Screen result message (8 replies, posted in General)
127 2022-08-01 03:50:51
Topic: Screen result message (8 replies, posted in General)
Hi all. Can we get a message for the screen result if it's lower than 720 X 640? I need it because clients complains.....
128 2022-07-28 15:10:13
Re: Style?? (2) (15 replies, posted in General)
Yes you have right I found my error it works perfect. Thanks
129 2022-07-28 11:23:39
Re: Style?? (2) (15 replies, posted in General)
I have used the code but when I enable the autoscroll and the Windows State is maximized the scroll bar in horizontal exist but in vertical it is missing. Can you please help me?
130 2022-07-27 17:40:30
Re: Style?? (2) (15 replies, posted in General)
You are great!!!!!! thank you
131 2022-07-27 16:11:27
Topic: Style?? (2) (15 replies, posted in General)
I just found out that using the Style option from the menu to have a nicer theme in you're software, the Autoscrol doesn't work. Realy now?? This sucks...except if someone knows a way to fix it...your her please....
132 2022-07-25 17:01:59
Re: Style?? (11 replies, posted in General)
Can we set the style using script ? I like to give the options of my clients to change they're themes
134 2022-07-24 06:35:12
Re: Style?? (11 replies, posted in General)
Could you please send an axample?? I do not understand the TShape.
Thank you in advance
135 2022-07-23 17:54:52
Topic: Style?? (11 replies, posted in General)
When I change the Background from the Style in the menu, all the panels and colors that I have used in my program changes in the background color. Is there a way to keep them in the colors that I have used ?
136 2022-06-29 16:40:22
Re: displaying records of two or more tables on same tablegrid (3 replies, posted in General)
Maby something like this .if I have understood correct. This is just an example. In the First Form you will see a tablegrid that contains records from two tables.
137 2022-06-29 14:29:24
Re: displaying records of two or more tables on same tablegrid (3 replies, posted in General)
Try to relate the tables, so you get records in one tablegrid from two tables
138 2022-06-29 06:10:50
Topic: What is this message ?? (1 replies, posted in General)
What is this message in the attached file ? is this a problem ?
140 2022-06-18 10:08:19
Topic: script like pressing with mouse in tablegrid (3 replies, posted in General)
frmCreateprotypa.TableGrid2.SelectedRow:=0;
frmCreateprotypa.TableGrid2.OnCellClick;
I use this script to show the first Row of a table. The other I wanna do is to select this row by script, like I use the mouse to press it, But I falid.
Any idea??
142 2022-06-17 15:36:17
Topic: format date (3 replies, posted in General)
hi ,
i like to convert the record imeragen which is a DATE variable in the format dd/mm/yyy to have it in an edit box
frmCreateProtypa.Edit21.Text:= SQLExecute('imeragen from Stoixeia WHERE id=' + IntToStr(frmCreateProtypa.TableGrid3.dbItemID));
143 2022-06-14 05:35:58
Topic: One record only (1 replies, posted in General)
Hi all,
please I need your help. In my sample I like to have only one record in my table.
How can I avoid new records but only have the permission to edit the one and oly record in
case it's necessary ?
144 2022-06-12 18:17:58
Topic: report (1 replies, posted in General)
How can I print in a report the value or the text from the Form1>>>> Form1.Label1.caption.
Is there a way to make in a report calculation from two records (a*b)??
146 2022-06-10 21:00:26
Re: math (4 replies, posted in General)
Yeap....
And another question how to keep the two first digits after the comma from a number. Lets say we have the nr 3.56520 it should give the result 3.57
147 2022-06-10 17:53:54
Topic: math (4 replies, posted in General)
Hi all,
How can I calculate and find the result of 25*8% in script?
148 2022-05-21 13:08:57
Topic: Decrypt password (2 replies, posted in General)
Hi to all,
I am using for my project the form for users and roals. My question is in case I forgot or lose the password is it possible to recover it from the database. What kind of a protocol should I use to decrypt it?
149 2022-05-06 15:15:55
Re: Solution for transferring records to new database (33 replies, posted in General)
Unfortunately it crashed with the same error.
SQLExecute('PRAGMA foreign_keys = off ');
Try to place it here:
procedure Form1_bImport_OnClick (Sender: TObject; var Cancel: boolean);
begin
OpenDialog := TOpenDialog.Create(Form1); // Setup dialog to select the csv file to import. This should be one that was created by the export procedure
OpenDialog.DefaultExt := 'csv';
OpenDialog.Filter := 'CSV|*.csv'; // Only allow csv files
OpenDialog.Options := ofOverwritePrompt+ofHideReadOnly+ofEnableSizing;
Dups := 0;
if OpenDialog.Execute then
beginSQLExecute('PRAGMA foreign_keys = off ');
ProgressBar := TProgressBar.Create(Form1);
ProgressBar.Parent := Form1.pnProgressBar;
ProgressBar.Width := Form1.pnProgressBar.Width;
ProgressBar.Height := Form1.pnProgressBar.Height;
ProgressBar.Position := 0;
ProgressBar.Max := 10;
Form1.pnProgressBar.Visible := True;
Form1.lblImpExp.Caption := 'Importing Database';
application.processmessages;
ImportToSl(OpenDialog.FileName); // Run Import procedure - Pass the csv filename to the procedure
Form1.TableGrid1.dbUpdate;
Form1.tgCompanies.dbUpdate;
Form1.pnProgressBar.Visible := False;
Form1.lblImpExp.Caption := '';
ProgressBar.Free;
ShowMessage('Import Finished.'+ ' Duplicates Not Imported: ' + IntToStr(Dups));SQLExecute('PRAGMA foreign_keys = on ');
end;
OpenDialog.Free;
end;Lines are added in bold
Hi all. According to the example import export project which does not include the foreign keys of the database,is there a way to include the foreign keys in the project?, so the while database could be export and import in and from a csv file
Foreign keys are generated by the database engine when you add/edit the table strucuture to keep the internal data structure intact and with integrity. You can not export them. They exist "virutal" as part of the internal structure information and internal check processing of SQL commands. They are enforced by the database engine. They are a kind of ruleset and not any kind of records.
150 2022-05-06 10:57:28
Re: Solution for transferring records to new database (33 replies, posted in General)
v_pozidis wrote:( PRAGMA foreign_keys = ... ).
I don't understand what I should do with that command.
Disable foreign key control before starting the import. This will allow you to add links to other entries that do not yet exist. That is, the order in which the tables are loaded will not matter.
SQLExecute('PRAGMA foreign_keys = off ');
And after all the records are loaded, the control must be turned on.
SQLExecute('PRAGMA foreign_keys = on ');
I did include it in my project but I get the same error