Click here to Skip to main content
16,020,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I make a crystal report formula field but it cannot work and it's always showing "0"

shared numbervar counter;
shared stringvar strRes;
local numbervar j;

FOR j := 1 TO COUNT({View_Department.ICNo}) STEP 1 DO
(
    local stringvar hyperstat := {View_Department.Hypertension}[j];
    if hyperstat = "Normal Blood Pressure" then counter := counter + 1;  
);

counter

In this code, what did I forget to put?
Please help me.
Posted
Updated 28-Nov-11 21:54pm
v4
Comments
Dalek Dave 7-Oct-10 3:35am    
Minor Edit for Grammar

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900