Results 1 to 6 of 6

Thread: Newbie need help!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    15

    Smile

    Hi all,

    I want to view the code when I run my project or I want to see which code is running when I click on one of the ClickCommand. How can I do it?!! Please tell me. Thx in advance.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Talking

    Down the left hand side of your code window there should be a light grey strip. Left click on this alongside the line of code you're looking for, and the program will pause when it reaches that line of code. If you click F5 at design time (when you're still writing your code) then the program will run itself so you can do any debugging, etc. Hope this helps.

    Sam

  3. #3
    Lively Member
    Join Date
    Jun 2000
    Posts
    74
    if you want to trace per line when you start the code try F8 instead of F5, this will follow the code per line. If you want the code to stop at a certain line hit the grey strip at the left side and you'll make a red line, this is where you can start tracing

  4. #4
    Guest
    Sorry if I misunderstood, but in the code section of the
    control (right click the control, select "View Code") place
    the cursor over an executable line. On the toggle bar
    (above) you should see an open hand. click this and the
    line of code should change color. This means that the
    program will stop executing when it reaches this line.

    Next to the open hand, you should see an icon of several
    lines with a crooked arrow pointing down. This icon will
    make the program execute the next step in the program and
    stop.

    Some where on the icon bar, you should see a document with
    an exclamation point. This will bring up the immediate
    window, where you can print out the current state of the
    program and variables.

    I hope I haven't taught my grandmother to suck eggs, here,
    but it took me about 3 weeks to figure the above out.

    Good Luck
    DerFarm

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    15
    Thx all for replying.
    One more question, I am looking at a big project now and it is very confusing me. Is there any way that I can break this project into many small projects?!!

  6. #6
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    MODULES!!!!!!!!!!!!!!

    Code can get really hard to read if all of the functions that are declared are all declared in the code section of a form. To avoid this confusion you have these groovy things called modules that just hold public functions and puclic variables!!! Try Project>>Add module

Posting Permissions

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



Click Here to Expand Forum to Full Width