Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regions in code
Message
De
19/03/2008 13:54:44
 
 
À
19/03/2008 13:36:30
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01303445
Message ID:
01303515
Vues:
19
>>My question is how exactly they are inserted? Manually by developer after he/she organizes the code or >automatically by IDE - if yes, how?
>
>you would just type directly into the code editor `#region SampleRegionTitle` on one line
>
>then a few lines down enter into the code editor the phrase `#endregion`.
>
>this allows the developer to set up and organize their code the way they like.
>try entering in the examples you were provided in the other posts and watch the Visual Studio IDE do its magic.
>
>Incidentally that SampleRegionTitle is not a program variable and is not used for any functional purpose in the .exe file. It simply allows you to identify areas of your code with a title of your choosing...
>
>Regions are really cool.
>
>I wonder if VFP 10 will have regions?
>O ya... there won't be a VFP 10
>:)

I just reorganized my whole page with regions, very nice.

However, somewhere along the lines I broke the already working code, so now I have to debug to find out what did I do wrong.

I also manually moved related code pieces together to have grid code in the same region, button's code in the same region, user functions in the same region, etc.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform