Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commenting Lines
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00805474
Message ID:
00805543
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
>Is is possible to comment out multiple lines of text rather than putting a ' at the beginning of each line? And, is it ok to put comments after a line of code with the ' like we do in vfp with the &&
>
>Thanks

Block commenting (selecting several lines of code and commenting or uncommenting all of them) can be done from the text editor toolbar (or customized and added where-ever you want it)

Below is an excerpt from code I am working on right now. You can see that I use this method of commenting. The only issue you may run into is trying to do this after a line continuation, before the next part of the line...
        Select Case oVal.GetType.Name.ToLower.Trim
            Case "checkbox", "radiobutton"                      ' Find out what the object is
                strKey = oVal.text                              ' Get the key name
                reg = reg.OpenSubKey(conRegKey, False)          ' open the key
                Try
                    oVal.checked = reg.GetValue(strKey, False)
The only issue you may run into is trying to do this after a line continuation, before the next part of the line...
    Private Declare Function _
        GetWindowLong Lib "user32" _      ' this is an invalid location for a comment
        Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform