Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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?
|
|
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
|
|
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.
|
|
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.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Thank you for your suggestion.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |