LastColumn

Returns the index of the last column of a range.

Usage

@LCol([<Address>])

Argument Name Description
Address WARNING: If an address is not specified, then the column count of the used range is returned. If the origin of the used range is not in column A, the returned value must be adjusted by the number of columns to the left of the first column of the used range in order to compute the actual last column.


Examples

@LastColumn

function example

A
1 Data
2 Data
3 Data
Procedure  
  Method Overload ErrorHandlingMode  
    Argument Value Comment
OnAfterBuild  
  SetEntry Text    
    Address Data.Cell  
    CellByCell True  
    CellCondition  
    Entry @LCol(B2:D4)  
A B
1 Data 4.0
2 Data
3 Data