Author Topic: Commenting out code.  (Read 8368 times)

ET

  • Guest
Commenting out code.
« on: August 31, 2012, 05:20:56 PM »
How do you comment out code, such as for testing purposes?
For example, if I want to test out my new logic for mapping joystick to wheel motion, I'd like to keep the old code intact, but non-functional, while the new code is wired up and tested.
In a text-based environment, I'd do something like:
Code: [Select]
joystick(inx, iny, inbuttons*)
{
   /*oldsubroutinethatworks()*/
   newuntestedsubrouting()
   ...
   other code
   ...
}
What does GUIDE have for this purpose?

Quax76

  • Guest
Re: Commenting out code.
« Reply #1 on: September 03, 2012, 08:28:01 AM »
I put those functions in a several page and let the output flow.

ET

  • Guest
Re: Commenting out code.
« Reply #2 on: September 04, 2012, 09:45:39 PM »
1. I assume  that "several" was a typo, and you meant "separate"?
2. What do I do with the inputs to the old page? Is there a method for giving every signal a zero than to manually wire in a large number of zeros?

Quax76

  • Guest
Re: Commenting out code.
« Reply #3 on: September 07, 2012, 08:23:41 AM »
Sorry. Of course I mean sepaerate...
Unfortunatley I don't know any easy way to wire all inputs to zero

Offline sanjeewa

  • PLUS+1 User
  • **
  • Posts: 6
  • Karma: +0/-0
Re: Commenting out code.
« Reply #4 on: October 24, 2024, 06:30:41 PM »
I know this is an old post, but I want to reference this.

You can comment out pages, components, like the attach image.
Here is the process to make a block to comment out.

* You need to add Keepin/ Keepout Polygon command in Tool palette.

1. open Tool Palette (Setup->Tool Palette)
2. Select Assign in the Tool Palette
3. Then select a unassign space (box)
4. Select the "Keepin/ Keepout Polygon" command
5. After selecting the command, it will show you to select an icon.
6. To use the command, select execute in Tool palette and select the assigned box (click on the icon)
7. Then draw a box around the block (click on 4 corners) and press F9 to make the comment out.

- It will draw a box with horizontal lines as the attached image.
« Last Edit: October 24, 2024, 06:33:19 PM by sanjeewa »

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 296
  • Karma: +28/-1
Re: Commenting out code.
« Reply #5 on: October 25, 2024, 08:19:40 AM »
Hello,

FYI!!
This function is not officially "released" and is not mentioned in any User Manuals.   
It's not included in any testing during our release process for the PLUS+1 GUIDE and therefore we can't guarantee the functionality.
There is a possibility to activate the function for evaluation purposes.
Since this is a non "released" function it's not supported by PLUS+1 Helpdesk.

With that said, we know that internal and external customer (don't know how) are using it, and appreciate it.   But use it with moderation and caution until it's officially released.


Thank you.

Best regards,
Tor
PLUS+1® SW PAE Team