Results 1 to 5 of 5

Thread: Remarks or Comments in your code?

  1. #1
    Regular Vistor
    Join Date
    May 2016
    Location
    Kansas City
    Posts
    16

    Remarks or Comments in your code?

    Since I'm not a programmer in my day job, I often borrow and modify code from others. Then months later when I want to tweak something I need to study the code, look at sample code in the reference manual to figure out the tweak I want to make. It would helpful to be able to add a remark or comment within the code. Is that possible? I've tried "REM", ";", "." but can't seem to find anything that lets me do this.

    Is there a way to do remark or comment the code?

  2. #2
    Hydroponics Guy
    Join Date
    Jun 2018
    Location
    Las Vegas, NV
    Posts
    57
    Kinda. If you keep your code in a text file, you can comment your lines with two number signs ( ## ). When you paste them into Apex, Apex will remove the commented lines and accept your code ( as long as there are no syntax errors). But you will have to refer to your text file for your comments.

  3. #3
    Regular Vistor
    Join Date
    May 2016
    Location
    Kansas City
    Posts
    16
    Better than nothing i suppose. Thanks for sharing this tip.

  4. #4
    Frequent Visitor
    Join Date
    Apr 2018
    Location
    Chicago, IL
    Posts
    173
    This would be a nice feature enhancement if it can be added.

  5. #5
    New User
    Join Date
    Nov 2022
    Location
    Orange County, CA
    Posts
    3
    Quote Originally Posted by kylarse View Post
    This would be a nice feature enhancement if it can be added.
    Please yes thumbs up for this feature request.

Similar Threads

  1. Question: How to include comments in Apex code (and if you can't, why not?)
    By allrover75 in forum Misc Apex Usage & Programming
    Replies: 8
    Last Post: 02-23-2016, 06:36
  2. Question: Comments in setup boxes?
    By ReeferAl in forum Misc Apex Usage & Programming
    Replies: 1
    Last Post: 08-18-2015, 11:45
  3. Question: Program Comments
    By Krazie4Acans in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 01-25-2014, 18:41
  4. Android App Comments
    By mntbighker in forum Legacy Android App
    Replies: 4
    Last Post: 07-23-2013, 01:00

Bookmarks

Bookmarks

Posting Permissions

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