SourcePoint Intel Help

Table of Contents

_strupr

Convert a string to uppercase.

Syntax

[result = ] _strupr(string)

Where:

result

specifies an nstring variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

string

is an nstring variable.

Discussion

The _strupr function converts any lowercase letters in a string to uppercase.  All other characters are left unchanged.  The return value can be assigned to an nstring variable, or displayed on the command line.

Example 1

Command input:

define nstring strHello = "hello"

_strupr(strHello)

Result:

HELLO

Example 2

Command input:

define nstring strHello = "hello"

define nstring strAnswer = _strupr(strHello)

strAnswer

Result:

HELLO