Skip to content

Commit

Permalink
Add to DB_Table as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Mar 2, 2024
1 parent 8b95d58 commit cba52ee
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,21 @@ type DB_Table
_ -> Error.throw (Illegal_Argument.Error "expected 'selector' to be either a Text or an Integer, but got "+(Meta.get_simple_type_name selector)+".")
if internal_column.is_nothing then if_missing else self.make_column internal_column

## ALIAS get cell, cell value
ICON select_column
Gets a value from the table.

Arguments:
- selector: The name or index of the column.
- index: The index of the value to get within the column.
- if_missing: The value to use if the selector isn't present.
@selector Widget_Helpers.make_column_name_selector
@index (t-> Widget.Numeric_Input minimum=0 maximum=t.row_count-1)
get_value : Text | Integer -> Integer -> Any -> Column | Any
get_value self selector=0 index=0 ~if_missing=Nothing =
col = self.get selector if_missing=Nothing
if Nothing == col then if_missing else col.get index if_missing

## GROUP Standard.Base.Selections
ICON select_column
Gets the first column.
Expand Down

0 comments on commit cba52ee

Please sign in to comment.