Topic: Auto-load by script issue
Hi there,
I am facing a strange issue with a script which loads automatically informations in grids using scripts ( auto click on form show)
this works perfectly well with already existent object created prior 1.51 but the one created using 1.51 does not refresh
// Load automatically information into grids in form1 + operator tracking
procedure Form1_OnShow (Sender: string; Action: string);
var
sCurrentDate: string;
begin
sCurrentDate := '"' + FormatDateTime('yyyy-MM-DD hh:nn:ss.000', now) + '"';
SQLExecute ('INSERT INTO WindowsID (DateTime, AccountID)' + 'VALUES (' +sCurrentDate+', '+ sUserName +')');
Form1.LastUser_Grid.dbUpdate;
Form1.Button1.Click;
Form1.Chk_restage.Click;
Form1.Chek_quarantine.Click; // the only one which does not work -- added using 1.51
// Display Release Note (About) with select in database
Form1.MemoAbout.Text := SQLExecute('SELECT Rel_Note FROM Release WHERE id=1');
Form1.MemoAbout.ScrollBars := ssVertical; // The component has a single scroll bar on the right edge.
end;
The Form1.Chek_quarantine.Click does not refresh autiomatically when I make changes whereas the others work perfectly well.
To refresh the grid, I have to reload the application!
Any hint?