10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ArraysAttributes used in a sort can be of any simple data type, such as varchar orinteger. The Sort method uses the object's Value attribute if the attribute is anobject of one of the following types:• DateObject• FloatObject• IntegerObject• MoneyObject• StringObjectNo other object types are permitted as sort attributes.If the array is displayed in a table field, the table field is automatically updatedafter the sort. For an example of sorting a table field, see How You Can SortTable Field Data Generically (see page 252).How You Can Find Values in an ArrayThe Find method can locate an element of the array based on the contents of asingle attribute of the array's class. The syntax for this method is:status = ArrayObject.find(attributename = string,value = expression | searchstring=string[,format = string] [,casesensitive = integer][,rownumber = byref (integer_variable),[,usedeleted = integer] [,startrow =integer][,endrow=integer])attributenameSpecifies the attribute being searched for. Attributes can be of any simpledata type, such as varchar or integer. The Find method inspects theobject's Value attribute if the attribute is an object of one of the followingtypes:• DateObject• FloatObject• IntegerObject• MoneyObject• StringObject224 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!