Vision Messages: Block
Profile of Class Block
Object | Function | ComputedFunction | +--- Block
A Block is a set of one or more expressions that are viewed together
as a unit.  Each expression in a block is known as a statement.
Statements are separated by the character ; .  The block itself is
surrounded by square brackets.  The general form for a block is:  
     [ statement1 ;
       statement2 ;
       statement3 ;
       . . .
     ] ;
Message Index
 asClosure: anObject
asClosure: anObject
 asMethod
asMethod
 asOf: aDate
asOf: aDate
 asRowsColumns
asRowsColumns
 asSelf
asSelf
 asUndelimitedString
asUndelimitedString
 aveForDateRange: aDateRange
aveForDateRange: aDateRange
 cGrowForDateRange: aDateRange
cGrowForDateRange: aDateRange
 changeLag: aDateOffset
changeLag: aDateOffset
 changeLead: aDateOffset
changeLead: aDateOffset
 classDescriptor
classDescriptor
 convergeTo: aValue within: tolerance initialGuess: guess
convergeTo: aValue within: tolerance initialGuess: guess
 convertFrom: string
 convertFrom: string
 current
current
 defaultInstance
defaultInstance
 displayAll
displayAll
 divertDelimitedOutput
divertDelimitedOutput
 divertOutput
divertOutput
 environment
environment
 environment: anObject
environment: anObject
 environmentWith: anObject
environmentWith: anObject
 environmentWith: object1  and: object2
environmentWith: object1  and: object2
 environmentWith: obj1 and: obj2 and: obj3
environmentWith: obj1 and: obj2 and: obj3
 environmentWith: obj1 and: obj2 and: obj3 and: obj4
environmentWith: obj1 and: obj2 and: obj3 and: obj4
 environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5
environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5
 environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6
environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6
 extractForDateRange: aDateRange
extractForDateRange: aDateRange
 formatForExcel
formatForExcel
 formatForPRN
formatForPRN
 gMeanForDateRange: aDateRange
gMeanForDateRange: aDateRange
 isBlock
isBlock
 lag: aDateOffset
lag: aDateOffset
 latest
latest
 lead: aDateOffset
lead: aDateOffset
 lsGrowForDateRange: aDateRange
lsGrowForDateRange: aDateRange
 maxForDateRange: aDateRange
maxForDateRange: aDateRange
 medianForDateRange: aDateRange
medianForDateRange: aDateRange
 minForDateRange: aDateRange
minForDateRange: aDateRange
 my
my
 pctChangeLag: aDateOffset
pctChangeLag: aDateOffset
 pctChangeLead: aDateOffset
pctChangeLead: aDateOffset
 print
print
 productForDateRange: aDateRange
productForDateRange: aDateRange
 selector
selector
 self
self
 sprint
sprint
 stdDevForDateRange: aDateRange
stdDevForDateRange: aDateRange
 totalForDateRange: aDateRange
totalForDateRange: aDateRange
 value
value
 value: anObject
value: anObject
 valueWith: anObject
valueWith: anObject
 valueWith: obj1 and: obj2
valueWith: obj1 and: obj2 
 valueWith: obj1 and: obj2 and: obj3
valueWith: obj1 and: obj2 and: obj3 
 valueWith: obj1 and: obj2 and: obj3 and: obj4
valueWith: obj1 and: obj2 and: obj3 and: obj4
 valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5
valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5
 valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6
valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6
 whatAmI
whatAmI
 whileTrue: aBlock
whileTrue: aBlock
Messages
Synopsis:Block asClosure: anObjectType: Method          Returns: Object
Parameters:
1 - Object
 asMethod
asMethod
Synopsis:Block asMethodDescription:
Converts Block to MethodType: Primitive          Returns: Method
 asOf:
asOf:
Synopsis:Block asOf: aDateDescription:
Returns the value of the Block as of the supplied date. If no value is stored for the date, the closest date prior to the supplied date is used.Type: Method          Returns: Object
Parameters:
1 - Date
Also Defined At:
| TimeSeries |
 asRowsColumns
asRowsColumns
Synopsis:Block asRowsColumnsDescription:
Executes the recipient block and returns a list of strings representing the rows of the output where each element of the list is extended by the variable 'columns' which represent the columns of output for the row. Each element in 'columns' is a string that corresponds to each print statement in the recipient block.Type: Method          Returns: List
 asSelf
asSelf
Synopsis:Block asSelfDescription:
Returns the original object.Type: Primitive          Returns: Block
Also Defined At:
| Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
 asUndelimitedString
asUndelimitedString
Synopsis:Block asUndelimitedStringDescription:
Returns the block as a string with surrounding brackets [ ] removed.Type: Method          Returns: String
 aveForDateRange:
aveForDateRange:
Synopsis:Block aveForDateRange: aDateRangeDescription:
Computes the average value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 cGrowForDateRange:
cGrowForDateRange:
Synopsis:Block cGrowForDateRange: aDateRangeDescription:
Computes the compound growth rate of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 changeLag:
changeLag:
Synopsis:Block changeLag: aDateOffsetDescription:
Computes the absolute change between the value of the block as of the default date and an earlier relative date.Type: Method          Returns: Number
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 changeLead:
changeLead:
Synopsis:Block changeLead: aDateOffsetDescription:
Computes the absolute change between the value of the block as of the default date and a future relative date.Type: Method          Returns: Number
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 classDescriptor
classDescriptor
Synopsis:Block classDescriptorDescription:
Reference to the object which describes the class. Class level information is stored here.Type: Constant          Returns: Object
Also Defined At:
| Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
 convergeTo:within:initialGuess:
convergeTo:within:initialGuess:
Synopsis:Block convergeTo: aValue within: tolerance initialGuess: guessDescription:
Executes recipient block until it converges to within tolerance distance from supplied value using guess as the initial guess. The recipient block contains the function you wish to evaluate. Iteration terminates if value converges to within tolerance or a maximum of forty iterations have been reached.Type: Method          Returns: Object
Parameters:
1 - Number
2 - Number
3 - Number
 convertFrom:
convertFrom:
Synopsis:Block convertFrom: stringDescription:
This message converts the supplied string to an instance of the recipient's class if applicable, returning NA otherwise. The definition at Object will lookup the string in the class' naming dictionary, if defined. The version at String returns the recipient stripped of any extensions. The versions at Number, Integer, Double, and Float convert the recipient to a numeric value if possible. The version at Date converts the recipient to a Date using the 'asDate' message defined at String. The version at Boolean returns TRUE if the recipient contains an upper/lower case combination of 'true' and FALSE if the recipient contains an upper/lower case combination of 'false'. The version at block returns a block containing the string as a message. This message is called by the 'as:' message at String.Type: Method          Returns: Object
Also Defined At:
| Boolean | Date | Number | Object | String | Undefined |
 current
current
Synopsis:Block currentDescription:
Returns current environment of block.Type: Primitive          Returns: Object
 defaultInstance
defaultInstance
Synopsis:Block defaultInstanceDescription:
Returns the default instance of the recipient object's classType: Constant          Returns: Block
Also Defined At:
| Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
 displayAll
displayAll
Synopsis:Block displayAllDescription:
Displays block definition (see TimeSeries)Type: Method          Returns: Object
Also Defined At:
| TimeSeries |
 divertDelimitedOutput
divertDelimitedOutput
Synopsis:Block divertDelimitedOutputDescription:
Prints block with marked areas for internal formatting purposes.Type: Primitive          Returns: String
 divertOutput
divertOutput
Synopsis:Block divertOutputDescription:
Captures output as a string instead of to terminal.Type: Primitive          Returns: String
 environment
environment
Synopsis:Block environmentDescription:
Returns block's environment.Type: Primitive          Returns: Object
 environment:
environment:
Synopsis:Block environment: anObjectDescription:
Return's block's environment, evaluated with one input.Type: Primitive          Returns: Object
Parameters:
1 - Object
 environmentWith:
environmentWith:
Synopsis:Block environmentWith: anObjectDescription:
Returns block's environment, evaluated with one inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
 environmentWith:and:
environmentWith:and:
Synopsis:Block environmentWith: object1 and: object2Description:
Returns block's environment, evaluated with two inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
 environmentWith:and:and:
environmentWith:and:and:
Synopsis:Block environmentWith: obj1 and: obj2 and: obj3Description:
Returns block's environment, evaluated with three inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
 environmentWith:and:and:and:
environmentWith:and:and:and:
Synopsis:Block environmentWith: obj1 and: obj2 and: obj3 and: obj4Description:
Returns block's environment, evaluated with four inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
 environmentWith:and:and:and:and:
environmentWith:and:and:and:and:
Synopsis:Block environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5Description:
Returns block's environment, evaluated with five inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
5 - Object
 environmentWith:and:and:and:and:and:
environmentWith:and:and:and:and:and:
Synopsis:Block environmentWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6Description:
Returns block's environment, evaluated with six inputs.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
5 - Object
6 - Object
 extractForDateRange:
extractForDateRange:
Synopsis:Block extractForDateRange: aDateRangeDescription:
Extracts the value of the recipient block for each point in the date range and returns a time series containing those date-value pairs.Type: Method          Returns: TimeSeries
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 formatForExcel
formatForExcel
Synopsis:Block formatForExcelDescription:
Executes the recipient block and generates tab-delimited output suitable for loading into Excel.Type: Method          Returns: String
Also Defined At:
| String |
 formatForPRN
formatForPRN
Synopsis:Block formatForPRNDescription:
Executes the recipient block and generates PRN-style output.Type: Method          Returns: String
Also Defined At:
| String |
 gMeanForDateRange:
gMeanForDateRange:
Synopsis:Block gMeanForDateRange: aDateRangeDescription:
Computes the geometric mean value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 isBlock
isBlock
Synopsis:Block isBlockDescription:
Returns the value TRUE when sent to any block.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
 lag:
lag:
Synopsis:Block lag: aDateOffsetDescription:
Returns the value of the block as of a date relative to the default date. The derived date is defined as: ^date - anOffset. If no value is stored for the derived date, the closest date prior to the supplied date is used.Type: Method          Returns: Object
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 latest
latest
Synopsis:Block latestDescription:
Returns the value of the recipient block as of the current date. Identical to [ ] asOf: ^today.Type: Method          Returns: Object
Also Defined At:
| TimeSeries |
 lead:
lead:
Synopsis:Block lead: aDateOffsetDescription:
Returns the value of the block as of a date relative to the default date. The derived date is defined as: ^date + aDateOffset. If no value is stored for the derived date, the closest date prior to the supplied date is used.Type: Method          Returns: Object
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 lsGrowForDateRange:
lsGrowForDateRange:
Synopsis:Block lsGrowForDateRange: aDateRangeDescription:
Computes the least squares growth value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 maxForDateRange:
maxForDateRange:
Synopsis:Block maxForDateRange: aDateRangeDescription:
Computes the maximum value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 medianForDateRange:
medianForDateRange:
Synopsis:Block medianForDateRange: aDateRangeDescription:
Computes the median value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 minForDateRange:
minForDateRange:
Synopsis:Block minForDateRange: aDateRangeDescription:
Computes the minimum value of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 my
my
Synopsis:Block myDescription:
Returns environment in which block was defined.Type: Primitive          Returns: Object
 pctChangeLag:
pctChangeLag:
Synopsis:Block pctChangeLag: aDateOffsetDescription:
Computes the percent change between the value of the block as of the default date and an earlier relative date.Type: Method          Returns: Number
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 pctChangeLead:
pctChangeLead:
Synopsis:Block pctChangeLead: aDateOffsetDescription:
Computes the percent change between the value of the block as of the default date and a later relative date.Type: Method          Returns: Number
Parameters:
1 - DateOffset
Also Defined At:
| TimeSeries |
 print
print
Synopsis:Block printDescription:
Redefines the standard print message to print out the contents of the recipient block.Type: Primitive          Returns: Block
Also Defined At:
| Date | DateOffset | DateRange | Entity | IndexedList | List | Object | String | TimeSeries | Undefined |
 productForDateRange:
productForDateRange:
Synopsis:Block productForDateRange: aDateRangeDescription:
Computes the product of the values of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 selector
selector
Synopsis:Block selectorDescription:
Returns the selector for the block (i.e., the message name).Type: Primitive          Returns: Selector
 self
self
Synopsis:Block selfDescription:
Returns recipient Block.Type: Primitive          Returns: Block
 sprint
sprint
Synopsis:Block sprintDescription:
Returns recipient Block as string.Type: Primitive          Returns: String
 stdDevForDateRange:
stdDevForDateRange:
Synopsis:Block stdDevForDateRange: aDateRangeDescription:
Computes the standard deviation of the values of the recipient Block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 totalForDateRange:
totalForDateRange:
Synopsis:Block totalForDateRange: aDateRangeDescription:
Computes the sum of the values of the recipient block over the specified date range.Type: Method          Returns: Number
Parameters:
1 - DateRange
Also Defined At:
| TimeSeries |
 value
value
Synopsis:Block valueDescription:
Evaluates the recipient block.Type: Primitive          Returns: Object
Also Defined At:
| Object | TimeSeries |
 value:
value:
Synopsis:Block value: anObjectDescription:
Evaluates the recipient block with one parameter.Type: Primitive          Returns: Object
Parameters:
1 - Object
 valueWith:
valueWith:
Synopsis:Block valueWith: anObjectDescription:
Evaluates the recipient block with one parameter.Type: Primitive          Returns: Object
Parameters:
1 - Object
 valueWith:and:
valueWith:and:
Synopsis:Block valueWith: obj1 and: obj2Description:
Evaluates the recipient block with two parameters.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
 valueWith:and:and:
valueWith:and:and:
Synopsis:Block valueWith: obj1 and: obj2 and: obj3Description:
Evaluates the recipient block with three parameters.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
 valueWith:and:and:and:
valueWith:and:and:and:
Synopsis:Block valueWith: obj1 and: obj2 and: obj3 and: obj4Description:
Evaluates the recipient block with four parameters.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
 valueWith:and:and:and:and:
valueWith:and:and:and:and:
Synopsis:Block valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5Description:
Evaluates the recipient block with five parameters.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
5 - Object
 valueWith:and:and:and:and:and:
valueWith:and:and:and:and:and:
Synopsis:Block valueWith: obj1 and: obj2 and: obj3 and: obj4 and: obj5 and: obj6Description:
Evaluates the recipient block with six parameters.Type: Primitive          Returns: Object
Parameters:
1 - Object
2 - Object
3 - Object
4 - Object
5 - Object
6 - Object
 whatAmI
whatAmI
Synopsis:Block whatAmIDescription:
Returns the string 'Block'.Type: Constant          Returns: String
Also Defined At:
| Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |
 whileTrue:
whileTrue:
Synopsis:Block whileTrue: aBlockDescription:
While recipient block evaluates to TRUE, executes supplied blockType: Primitive          Returns: Object
Parameters:
1 - Block