Hello,
I have two programs and need help in programming. The first is the calculation of total hardness in water. The second is the total number of cations present in this water. As I describe below:
1st program:
EXPORT DTotal;
EXPORT Dureza_Total(Ca,Mg)
BEGIN
DTotal:=Ca*2.49+Mg*4;
END;
2st program:
EXPORT Cátions;
EXPORT TCátions(Fe3,Fe2,H,NH,Na,K,Cu,Zn,Al,Cr,Ca,Mg)
BEGIN
RETURN Dureza_Total(Ca,Mg)+Fe2*1.79+Fe3*2.69+H*50+NH*2.78+Na*2.17+K*1.28+Cu*1.57+Zn*1.53+Al*5.56+Cr*2.89▶Cátions;
END;
END;
When I run this program pops up the error: “TCátios Error: Invalid input”.
If you decrease the amount of variables, for example, from 12 to 10, the program works. This same program in 50 g works without problem. There is no solution or other alternatives?
Thank You
David