Mode Command and Function

Purpose

Sets and returns different options for string conversions and comparisons; the function can also return system settings for nationality and language.

Syntax

Mode [ All | BaseYear | Compare | Date | Format | Lang | StrSpace | Using | Val ] exp

exp = Mode[$]( All | BaseYear | Compare | Date | Format | Lang | StrSpace | Using | Val )

exp = Mode[$]( Language | Language English | Language Native | Lang List | Country | Country Eng | Country Native | Ctry | Ctry Code )

exp : all variable types

Description

Mode sets a global option for converting values to strings and comparing values, while Mode() returns the current value of the global option.

- Mode All sexp
- sexp = Mode(All) Show

- Mode BaseYear iexp | sexp
- sexp = Mode(BaseYear) Show

- Mode Compare iexp | sexp
- sexp = Mode(Compare) Show

- Mode Date sexp
- sexp = Mode(Date) Show

- Mode Format sexp
- sexp = Mode(Format) Show

- Mode Lang sexp | iexp
- sexp = Mode(Lang)
- sexp = Mode(Lang List)
- sexp = Mode(Language)
- sexp = Mode(Language Eng)
- sexp = Mode(Language Native)
- sexp = Mode(Country)
- sexp = Mode(Country Eng)
- sexp = Mode(Country Native)
- sexp = Mode(Ctry)
- sexp = Mode(Ctry Code) Show

- Mode StrSpace sexp | flag
- sexp = Mode(StrSpace) flag Show

- Mode Using sexp
- sexp = Mode(Using) Show

- Mode Val sexp
- sexp = Mode(Val) Show

See Also

Date$, Format, Str, Time$, Using, Val

{Created by Sjouke Hamstra; Last updated: 15/01/2023 by James Gaite}