Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tick Symbol

Status
Not open for further replies.

IanWaterman

Programmer
Jun 26, 2002
3,511
GB
I would like to show a tick on my report, currently using CR 10 on Oracle 8

In theory I should get a Square Root symbol if I use ascii code 251, this is close enough to a tick.

However, if I use chr(251) in my if then else formula it returns a u with a hat ^, I'm sure there is a correct term!

I have also tried Chr(0251) as some tables indicate that is the correct setting, but get get the same. Interestingly if I use ascci characters in word 251 is a u with hat and 0251 is a tick.

What am I doing wrong or can anyone tell me a better way to get a tick in a report.

Thanks in adavance

Ian
 
Play around with the formats you are using. Using Arial, I am getting this symbol ^ with chr(136). Is this what you are looking for?



Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
askdon@srhconsulting.com
 
Font does not appear to make much difference.

I just want a tick symbol, but Crystal will only return the u with ^ above it, if I use ascii 251.

In ascii tables 251 should return the Square root symbol which is close enough to a tick for my needs.

Thank you

Ian
 
Found a solution

Using "R" in my formula and then setting font to Windings 2 creates a tick in a box, or "P" gives me a plain tick.

Ian
 
Do you want a tick only, or a tick above a certain symbol?

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
askdon@srhconsulting.com
 
Try this formula:

numbervar i;
stringvar result;

for i := 128 to 255 do
(
result := result & totext(i,"#") & "-" & chr(i) & chr(13);
);
result;

Place it in a blank report and set the Can Grow property.
You should get the extended ascii character set with the corresponding value.
Once you find the character, use the corresponding numeric value in the chr function.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top