block comment?


Closed Thread
Results 1 to 6 of 6

Thread: block comment?

  1. #1
    eoasap's Avatar
    eoasap Guest

    Default block comment?

    is there a way to block comment in picbasic? i've searched the manual and the forum to no avail.

  2. #2
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    by block comment, i mean comment out an entire section of code without commenting each line. (although i'm sure everyone here knows that ).
    i think i remember C language being something like this.

    /* 'starts commenting everything beneath here

    line 1
    line 2
    line 3
    ...
    line n

    */ 'ends block comment

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    it could be interesting to have this kind of feature.. but for now, the only way you can do it is to use the Comment Block button in the MicroCode studio located at the right side of the toolbar
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Eoasap,

    Well, I am not sure if this is going to help, but....

    the Apostraphie? Anything after the Apostraphie is considered a comment. Thus place a Apostraphie at the beginning of the lines of code you want to block out.

    junk var byte

    for a = 1 to 10

    Junk=junk*10
    ' junk=junk /10 this has a apostrophie at the beginning.
    ' ..... So does this line and the next 2 lines.
    ' ..... Thus, 4 lines of code will be ignored.
    ' .....
    next a



    Dwayne
    Last edited by Dwayne; - 12th October 2005 at 18:44.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  5. #5
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    it could be interesting to have this kind of feature.. but for now, the only way you can do it is to use the Comment Block button in the MicroCode studio located at the right side of the toolbar
    lol! i feel pretty stupid for never seeing that. that'll do the trick. thanks alot

  6. #6
    eoasap's Avatar
    eoasap Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks Dwayne,

    I've gotten that far, but i was just struggling with trying to comment out
    sections of code (such as a feature that might be causing problems). I hadn't seen the block comment feature in microcode studio, but that does the trick well

    Glenn

Similar Threads

  1. config bits
    By brianD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2010, 13:45
  2. Setting up internal clock correctly?
    By JohnM in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th March 2008, 20:29
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. Bootloader and Instant Interrupts Atn:_DT_
    By Josuetas in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 16th May 2007, 01:59
  5. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts