Click to See Complete Forum and Search --> : Clearing the Code


amrigo
01-09-2006, 08:13 AM
Hi

I would like to know the techniques to make clear code in asp just to know where star and ends an if / else a do/while or a sub.

I have only the code idention to help me to know where a piece of code starts/ends ?

Any editor has this feature : showing where a piece of code stasrts/ends ?

i like to use editplus that has a feature : matching brace showing where a matching brace start and ends .

Visuial interdev has this feature ?

lmf232s
01-09-2006, 01:01 PM
no VS interdeve does not have this feature. .Net will allow you to expand and contract subs and functions, etc.

What i do in interdev is make notes (anything that helps you understand, something that stands out)
'ASP Notes
'###########################################
'###############START FUNCTIONS###############
'###########################################

'###########################################
'################END FUNCTIONS###############
'###########################################
'HTML Notes
<!--Start Function-->
<!--End Function-->

Notes like this along with indention should be all you need.
Now there are those times when you have long functions or the code is very long and it can be hard to determine where it should go but with the proper indention and commenting your code, it should not be an issue.

amrigo
01-10-2006, 07:39 AM
Thank´s

Bullschmidt
01-10-2006, 03:00 PM
And here's a related resource you may want to check out:

Visual Basic Scripting Edition VBScript Language Reference
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/ddfa5183-d458-41bc-a489-070296ced968.asp

amrigo
01-11-2006, 07:59 AM
Very useful !!!