on 10-30-2015 4:15 PM
Hi,
I'm viewing some of the sample reports available and in one, College Board PSAT 9.0.rpt, there are formula fields that display bullets to indicate numbers/percentages.
One of the formulas is this:
whileprintingrecords;
shared numbervar ratio;
local numbervar marmot;
marmot:= int(ratio*Maximum ({@Comp Group}, {SKILL.SKILL_NO}));
"{\rtf1\ansi\ansicpg1252{\fonttbl{\f0\fmodern\fprq1\fcharset0 Lucida Console;}}" +
"\viewkind4\uc1\pard\f0\fs6 " + replicatestring(" ",marmot) + "\fs27\cf1 " + chr(149) + "\par" +
"}";
I understand the shared and local variable parts - the taking of the number, but I don't understand what is in between the "".
It seems to serve as a way to place the bullets in the right place (compared to the header), but the only thing I've ever seen like it is web code.
Would anyone be able to explain in layman's terms what the code is doing and/or how it works - what type of code it is?
I've attached a screenshot of the part of the report I'm looking at.
Thank you,
Erin
Hi Erin,
The code between the double quotes is RTF text code.
I have never written RTF codes however, CR can 'interpret' such codes by setting the field's 'Text Interpretation' to 'RTF Text' (Format Field > Paragraph tab).
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.