There is actually a form parser in the members section that will automatically turn it into a form that works lol.
But what you need in your script is this:
SCAR Code:
Program New;
{.include SRL/SRL.scar}
var
//your variables
Procedure InitForm;
begin
//the form that you made here
end;
Procedure SafeInitForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('InitForm', v);
end;
Function ShowFormModal: Boolean;
begin
Result:= False;
if(frmDesign.ShowModal = mrOk)then Result:= True;
end;
Procedure SafeShowFormModal;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('ShowFormModal', v);
end;
begin
SetupSRL;
SafeInitForm;
SafeShowFormModal;
end.
and on the line that says this in your form:
frmDesign.Visible := True;
make it
frmDesign.Visible := False;