CRSdefiance

08-01-2001, 09:23 PM

About the first problem I came here with...using variables in equations. Well the calculation you gave me for Equator was:

With Equator1

txtStrengthCalc = UCase(txtStrengthCalc)

.Equation = Replace(txtStrengthCalc, "STR", CStr(iStr))

.Calculate

txtStrength = .Result

That works fine for strength and all, but say, if I wanted to calculate using other variables in this, like str*agi, or str/vit, etc, it won't recognize the variable and assigns it a value of zero. How do I get ALL equations I run to recognize ALL variables?

With Equator1

txtStrengthCalc = UCase(txtStrengthCalc)

.Equation = Replace(txtStrengthCalc, "STR", CStr(iStr))

.Calculate

txtStrength = .Result

That works fine for strength and all, but say, if I wanted to calculate using other variables in this, like str*agi, or str/vit, etc, it won't recognize the variable and assigns it a value of zero. How do I get ALL equations I run to recognize ALL variables?