Multitech MT5634HD16 Guia do Utilizador Página 190

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 292
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 189
RASExpress User Guide
180 CommPlete Communications Server
TOUPPER toupper(var string buffer);
Converts the string variable to upper case.
Example
/* This script illustrates the toupper command. */
proc main;
string str;
integer len;
display("Example for toupper command^J^M");
display("Enter string to convert : ");
len = 20;
if getstr(str, len) then
fdisplay("^J^MString read is : %s^J^M", str);
toupper(str);
fdisplay("Converted string is : %s^J^M", str);
endif
endproc
TRANSMIT transmit(string key_sequence) : integer;
Sends out the characters specified in key_sequence. Key_sequence should be null termi-
nated. If connection is not initialized, the command is ignored and 0 is returned. If all
the keys given in key_sequence are sent out successfully, 1 is returned; otherwise 0 is
returned.
Example
/* This script illustrates the transmit command. */
proc main;
string s;
integer i;
s = " example string ";
fori=0to100do
if transmit(s) then
display("Transmit successful\x0d\x0a");
else
display("Transmit failed\x0d\x0a");
endif
endfor
endproc
WAIT wait(integer delay);
Suspends the script execution for the time in seconds specified by delay. Characters
typed on the keyboard will be sent to the remote and the incoming characters will
also be shown on the terminal.
Example
/* This script illustrates the wait command. */
proc main;
integer duration;
display("Enter wait duration in seconds : ");
duration = getint;
fdisplay("^J^MWait starts (duration = %d seconds)^J^M", duration);
wait(duration);
display("Wait ends^J^M");
endproc
Vista de página 189
1 2 ... 185 186 187 188 189 190 191 192 193 194 195 ... 291 292

Comentários a estes Manuais

Sem comentários