RATS 10.1
RATS 10.1

Functions /

String and Label Functions

Home Page

← Previous Next →

These are functions which work with strings and labels.


 

%bestrep(A,n)

“Best” representation

%concat(first,last)

Concatenate two labels

%datelabel(t)

Date label for a given date/entry number

%l(series)

Get label of a series

%label(variable)

Get label of a series or other variable

%left(s,n)

Left substring

%mid(s,m,n)

Middle substring

%minimalrep(A,n)

Determines “minimal” representation

%right(s,n)

Right substring

%s(label)

Get (or create) series with a given label

%strcmp(s1,s2)

Compare two strings (case-sensitive comparison)

%strcmpnc(s1,s2)

Compare two strings disregarding case

%strescape(s,chars,escape)

Returns copy of string with special characters "escaped"

%strfind(s,f)

Searchs s for string f, returning position if found, 0 if not

%string(n)

Convert integer value to a string

%strlen(s)

Returns the length of a string

%strlower(s)

Convert string to lower case

%strrep(s,n)

Repeats a string

%strtrim(s)

Returns a copy of a string with leading and trailing spaces and quotes removed

%strupper(s)

Convert string to upper case

%strval(x,f)

String showing a numerical value

%value(s)

Get numeric value from a string

 


Copyright © 2025 Thomas A. Doan