126

(8 replies, posted in General)

yeah,,,,
can I also by script change the screen result??

127

(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

(15 replies, posted in General)

Yes you have right I found my error it works perfect. Thanks

129

(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

(15 replies, posted in General)

You are great!!!!!! thank you

131

(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

(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

133

(11 replies, posted in General)

Thank you all

134

(11 replies, posted in General)

Could you please send an axample?? I do not understand the TShape.
Thank you in advance

135

(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 ?

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.

Try to relate the tables, so you get records in one tablegrid from two tables

138

(1 replies, posted in General)

What is this message in the attached file ? is this a problem ?

139

(3 replies, posted in General)

Thank you

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??

141

(3 replies, posted in General)

Thank you, it works perfect

142

(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

(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

(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)??

145

(4 replies, posted in General)

Thank you

146

(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

(4 replies, posted in General)

Hi all,
How can I calculate and find the result of 25*8% in script?

148

(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?

Unfortunately it crashed with the same error.






teco049 wrote:
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
   begin


         SQLExecute('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.

k245 wrote:
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