Sometimes, the project management is far more important than a beautiful UI design. Project Management includes How to make teammembers understand your design easily.
For widgets and pages, we could write annotations. but for case code, RP does not provide a solution.
I think I figure out a workaround to 'add inline comment to case code'.
The solution is to use function 'replace' in this way : [[''.replace('Comment:I love RP','')]]
1. For case condition:
For case code of 'Set Text':
For case code of other action(eg. show widget):
Set a global varible 'Comment' into [[''.replace('Comment:I love RP','')]]
Even though this solution is not perfect, but at least the code is easier to understand and the comment will not effect the running prototype.
You also can modity it into:
[[''.replace('✎:I love RP','')]] or [[''.replace('I love RP','')]]
It's all up to you
Inline Comment for Code.rp (54.0 KB)
In order for teammember easy to read the generated specification, you can use VBA to replace your comment tag (eg. [[''.replace(') into '/*' and '*/' , then change the comment setences color into green automatically.
The specification will be like: