Inline
>Is is possible to comment out multiple lines of text rather than putting a ' at the beginning of each line?
No, VB is rather limited this way. You have to have the apostrophe at the beginning of each line. That's the price VBers pay for not having to put a semicolon at the end of each line. ;-) But you can comment/uncomment out mutliple lines at once by (1) highlighting them and (2) either clicking the comment/uncomment icons on the toolbar or by pressing Ctrl + C **and then** Ctrl + C to comment (or Ctrl + U to uncomment). Also, if you have VB set to "word wrap" mode, you can just type a single line of comment like a paragraph, and it will wrap around as necessary.
>And, is it ok to put comments after a line of code with the ' like we do in vfp with the &&
Yes, you can do that.
HTH,
John Barone
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement