|
-
Nov 15th, 2000, 10:08 AM
#1
Thread Starter
New Member
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.
-
Nov 15th, 2000, 10:12 AM
#2
Lively Member
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
-
Nov 15th, 2000, 10:16 AM
#3
Lively Member
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
-
Nov 15th, 2000, 10:19 AM
#4
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
-
Nov 15th, 2000, 10:42 AM
#5
Thread Starter
New Member
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?!!
-
Nov 15th, 2000, 10:54 AM
#6
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|