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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation of Square Roots in Paradox

Status
Not open for further replies.

TokyoRick

Technical User
Jul 25, 2001
1
JP
Is is possible to write PAL code for calculate square roots of derived variables. I can do simple arithmetic calculations but would like to take the sum of the records for a specific field and then determine the square root of that sum.
 
You don't say what version. Something like :
var
sqResult number
tc tcursor
endvar

if not tc.open ("ORDER.DB") then
errorShow()
return
endif

sqResult = sqrt(tc.cSum("Total Invoice"))

tc.close()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top