Results 1 to 8 of 8

Thread: Need help with a form!

  1. #1
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need help with a form!

    I'm currently making my first script. It uses a custom form i made, but i cant get it to login the information i put in the form. I have read so much about scripting and i actually understand a lot. Please help! If you need me to post the script to understand what I'm talking about, I will.
    Rs2pro666

  2. #2
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah , defanitly oign to need the script..

    Make sure on your button, you make some thing like
    SCAR Code:
    Button1.OnClick := @Click;
    And then make sure you have a procuder nammed click, that stored the form informtation into your variables.
    like
    SCAR Code:
    PROCEDURE Click(Sender: TObject);
      BEGIN
        blueColor     := StrToInt(edit5.Text);
        redColor      := StrToInt(edit8.Text);
        myForm.ModalResult := mrOk;
      END
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    He probably didn't have the procedure...please post it.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ok

    yea, ill post the script... just remember that its not done, and its my first script, and that i was trying to make it a shortened version of another script.
    and yes, i suck at scripting.

    Attachment 5253

  5. #5
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, exactly what i said...

    You have the "buttonClick" procedure... but you never use it! lol.

    To you use it, you need to call it when u click the submit but you never do.

    to do that, add this around your other statements about button1.
    SCAR Code:
    Button1.OnClick := @buttonClick;
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  6. #6
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure rs2proswait;
    var rs2pro: integer;
    begin
    end;

    Umm...what is this?

    1.1K posts..
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  7. #7
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    something that i added from another script which i now understand i can take out

  8. #8
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thx for the help, but now when i do everything correctly, it says something about a runtime error in line 137 =(

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
  •