Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Comments in PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
bcochrane
Posted : Wednesday, March 27, 2013 2:15:59 PM
Registered User
Joined: 9/17/2010
Posts: 484

I did a search thru Discussion and found nothing with Comments and PCF.

 

Is there any way to embed Comments in a PCF "box" as one would document code, eg with an * or // at beginning of line?

 

If not, should/could this be added to list of future enhancements?

Bruce_L
Posted : Wednesday, March 27, 2013 2:25:49 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You can't add comments to a Personal Criteria Formula in TC2000 version 12.3. Attempts to do so will result in an error message. Custom PCF Indicators and Custom PCF % True Indicators have a place for a label however.

In TC2000 version 7 it is possible to start the formula with the "name" or "comment". You can even put the name or comment on the first line and have the formula on the second line (although this requires writing the formula in another program and pasting it into the formula window).

This is not supported however (meaning it could stop working at any time) and great care must be taken in constructing the name or comment. If it contains reserved symbols or words, TC2000 will see it as a formula and attempt to evaluate the name. This will normally result in an error of some sort, but could result in a mis-calculation instead.

You may wish to review the following:

label middle/bottom panels in telechart
How to Label my PCFs
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

Thank you for your suggestion. It has been assigned case number 10838.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
stevenevis
Posted : Friday, September 22, 2017 4:55:05 PM
Registered User
Joined: 11/27/2014
Posts: 3

I am wondering why it is not added.

Any line starting with "//" could be a comment.  In complex forumulas, that would be a life-saver. Being a programmer, this is super easy to do.

stevenevis
Posted : Friday, September 22, 2017 5:03:54 PM
Registered User
Joined: 11/27/2014
Posts: 3

Thanks for searching.  Really good to have, otherwise PCF tends to become completely spaghetti.

It is very easy to implement, so I hope Worden considers it.

Bruce_L
Posted : Monday, September 25, 2017 10:26:07 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Thank you for your suggestion.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.