Code Disable

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
luthra_arun
Posts: 18
Joined: Wed Nov 11, 2009 7:39 am

Code Disable

Post by luthra_arun »

Hi to all,
How do i Disable the code block in the project.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Code Disable

Post by Benj »

Hello

What do you mean by Code Block?

If you mean chip memory protection settings then they can be disabled by clicking on Chip -> Configure -> Expert mode.

luthra_arun
Posts: 18
Joined: Wed Nov 11, 2009 7:39 am

Re: Code Disable

Post by luthra_arun »

No i mean to say that if i am doing large progam and while doing the programming i need to disable the particler line of code like in C we use
/* */ to diable the code block and (//) to disable the line of code.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Code Disable

Post by Benj »

One simple way of doing this is to add a decision icon to your program leaving the decision case as 0. This will have the effect of never being yes so you can put your unwanted or 'commented' out code into the yes branch. Then when you want to put the code back simply drag it out of the decision icon or go into the decision icon and change the parameter to 1. This will have the effect of always being yes.

Post Reply