home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
prog
/
ks94an.arj
/
K_ARG.HDR
< prev
next >
Wrap
Text File
|
1994-04-24
|
877b
|
37 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Arg( cArgText, cArgStr ) --> cString
PARAMETERS:
cArgText : the string to parse
cArgStr : the specific token to extract
SHORT:
Parse strings to extract text following specfied token.
DESCRIPTION:
_Arg() extracts from one string, everything that follows a given token up
to the first space or the end of the string. It is useful for parsing
command lines.
NOTE:
EXAMPLE:
t = "/sys_sec10 /ftype@ /howdy123"
v = _arg(t,'/sys_sec') Result: v = '10'
w = _arg(t,'/ftype') Result: w = '@'
x = _arg(t,'/howdy') Result: x = '123'
******************************************************************************/