UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

UPCASE Syntax UPCASE(string.expr) Description The UniBasic UPCASE function converts lowercase characters to uppercase. Nonalphabetic values are not changed. Special characters, including the null value, are not converted by this function. UPCASE does not support multibyte languages. Example In the following example, the program segment converts “be bold!!” to “BE BOLD!!”: STRING = 'be bold!!' PRINT UPCASE(STRING) Related Commands UniBasic DOWNCASE, ICONV Masked Character (MC), OCONV Masked Character (MC) 1-894 UniBasic Commands Reference

WAKE Syntax WAKE pid Description The UniBasic WAKE command activates a UniData process (pid) that has been paused with either the ECL PAUSE command or the UniBasic PAUSE command. If the specified process has not already been paused, UniData disregards the next PAUSE issued for the process indicated by pid. Example The following program, WAKEUP, lists paused processes, then prompts for the ID of a process to wake up. Next, the program executes the UniBasic WAKE command against that process, and then executes LIST.PAUSED again to verify that the process was reactivated. WAKEUP EXECUTE "LIST.PAUSED" PRINT "Enter ID for process to wake ": INPUT pid WAKE pid EXECUTE "LIST.PAUSED" The following example shows the results of executing the preceding program, waking up process 10811: 1 :RUN BP WAKEUP 2 Number of Paused Users 3 ~~~~~~~~~~~~~~~~~~~~~~ 4 1 5 6 UDTNO USRNBR UID USRNAME USRTYPE TTY LEFTTIME TOT_TIME 7 1 10811 1283 carolw udt pts/0 - - 8 9 Enter ID for process to wake ?10811 10 Number of Paused Users 11 ~~~~~~~~~~~~~~~~~~~~~~ 12 0 WAKE 1-896

UPCASE<br />

Syntax<br />

UPCASE(string.expr)<br />

Description<br />

The <strong>UniBasic</strong> UPCASE function converts lowercase characters to uppercase.<br />

Nonalphabetic values are not changed. Special characters, including the null value,<br />

are not converted by this function. UPCASE does not support multibyte languages.<br />

Example<br />

In the following example, the program segment converts “be bold!!” to “BE<br />

BOLD!!”:<br />

STRING = 'be bold!!'<br />

PRINT UPCASE(STRING)<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DOWNCASE, ICONV Masked Character (MC), OCONV Masked Character (MC)<br />

1-894 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!