Converts a copy of the input string to uppercase letters.
If not of type string, string is converted to string using the default formatting rules of PV-WAVE. (These rules are described in Free Format Output in Chapter 8 of the PV-WAVE Programmer's Guide.)
a = 'A StRInG oF miXeD caSE' PRINT, STRUPCASE(a)
A STRING OF MIXED CASE
Create a string with a mix of uppercase and lowercase characters.
; Convert the string in
a
to uppercase and display the result.
b = 45 INFO, STRUPCASE(b)
Expression STRING = ' 45'
b
is converted to a string.
c = STRARR(3)
Create a three-element string vector.
c(0) = 'StrInG 0' c(1) = 'sTrINg 1' c(2) = 'StrinG 2'
Assign a string with a mix of uppercase and lowercase characters
; to each element of
c
.
PRINT, TRANSPOSE(STRUPCASE(c))
STRING 0
STRING 1
STRING 2
Display the vector of strings of
c
after converting it to uppercase.
; Use TRANSPOSE to view the vector as a column.