Results 1 to 4 of 4

Thread: ShowFormModel runtime error

  1. #1
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default ShowFormModel runtime error

    mkay, i updated my form for my alcher, adding more labels and edit boxes(so i can have more options and such) and now i get

    SCAR Code:
    [Runtime Error] : Exception: Cannot make a visible window modal in line 305 in script C:\Program Files\SCAR 3.20\Scripts\akward alcher.scar

    i have yet to go look at how to fix runtime errors, so i might edit this later.

    the procedures(other than initform, because its too long i guess):

    SCAR Code:
    procedure SafeInitForm;
    var
    v: TVariantArray;
    begin
      setarraylength(V, 0);
      ThreadSafeCall('InitForm', v);
    end;

    procedure ShowFormModal;
    begin
      frmDesign.ShowModal;
    end;

    procedure SafeShowFormModal;
    var  v: TVariantArray;
    begin
      setarraylength(V, 0);
      ThreadSafeCall('ShowFormModal', v);
    end;

    i hate making threads about script errors, but theres no other thread on this section, so might as well

    ps: when i get the forms ready, and the antiban fixed, ill release it for testing
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  2. #2
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    look at the init form procedure. the line that says:

    SCAR Code:
    frmdesign.Visible:=true;

    change it to

    SCAR Code:
    frmDesign.Visible:=False

    then it should work. if it doesnt then tell me.

  3. #3
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    oh my god. im an idiot -.- it really makes me think if i should be scripting tbh haha.

    thanks haha..

    but really, why cant the form editor make it do that automaticly
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  4. #4
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lolz np.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •