Einzelnen Beitrag anzeigen
Alt 12.10.2012, 01:52   #142
leecher
Moderator
STRSTUFF

E r g e b n i s / R e s u l t

Place a character string in the keyboard buffer

B e s c h r e i b u n g / D e s c r i p t i o n

This procedure places a character string in the keyboard buffer. This
allows the programmer to force or suggest strings into fields. It might
also be used in the place of a macro.

An application would fail if an essential macro is missing. The strstuff
routine could provide macro functionality without the need to carry around
additional files.

S y n t a x

Code:
bool = call ('STRSTUFF' , string)
P a r a m e t e r

string - The single parameter passed to strstuff is a string. This
string is passed directly to the keyboard buffer. The maximum
length string is 64 characters long.

R e t u r n s

The procedure returns a Boolean or True/False value.

TRUE - the string was placed in the keyboard board.
FALSE - the procedure failed

B e i s p i e l / E x a m p l e

Code:
! load the keyboard utilities 
attach 'KEYBOARD'

! call the strstuff procedure
x = call ('STRSTUFF' , 'Engulf and Devour plc') ;

a = ''
get a   ! a is filled with the string 'Engulf and Devour plc'

! remove the utility from memory
detach 'KEYBOARD'
Q u e r v e r w e i s / C r o s s R e f e r e n c e
GET_CH Get character without echoing it to the screen.
GET_CHE Get a character with echo.
FLUSHBUF Clear out the keyboard buffer.
KEYSTUFF Place a function key in the keyboard buffer.
leecher ist offline   Mit Zitat antworten