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

Ubound array function

Status
Not open for further replies.

sqw

Technical User
Mar 28, 2002
61
GB
I was wondering if someone can help me I did the first Crystal Exam yesterday and got a question that asked which 2 commands return the size of the array. I know one of then is Ubound but did not know the other one. I looked in the manuals and online but cannot find the other function. I think the other options were: sum, count and something else.

If anyone can help that would be great .
Thanks
 
In Crystal XI's help file you can find the
Array Summary Functions
----------------------------
Crystal Reports Online Help
Array summary functions
The following functions include an overload for an array:

Average
Count
DistinctCount
Maximum
Minimum
PopulationStdDev
PopulationVariance
StdDev
Sum
Variance

------------------------------------------------------
Those are in addition to UBound....

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Does that mean that sum, count and Ubound do the same thing?
 
Only Ubound and count give the same result

Ubound(1,2,3) = 3
Count(1,2,3) = 3
Sum(1,2,3) = 6

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top