Freddy1990
01-27-2007, 10:39 PM
Ok, alot of people are going to say this is simple and shit... Which is true...
But for the people who don't know:
Using a form's Showmodal function i's shown and scar will wait until it's closed to resume.
However, if you use the Show function, scar will not wait for it to close, it will just continue with the rest of the script, this however does not remove any functionability from the form, basically this is what you need to show it with the Show function:
procedure ShowForm;
begin
frmDesign.Show;
end;
procedure SafeShowForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('ShowForm', v);
end;
Have fun.
But for the people who don't know:
Using a form's Showmodal function i's shown and scar will wait until it's closed to resume.
However, if you use the Show function, scar will not wait for it to close, it will just continue with the rest of the script, this however does not remove any functionability from the form, basically this is what you need to show it with the Show function:
procedure ShowForm;
begin
frmDesign.Show;
end;
procedure SafeShowForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('ShowForm', v);
end;
Have fun.