dcl_lexical_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dcl_lexical_functions [2018/11/20 19:52] – lricker | dcl_lexical_functions [2018/12/03 19:56] – lricker | ||
---|---|---|---|
Line 32: | Line 32: | ||
< | < | ||
$ HELP LEX F$EDIT | $ HELP LEX F$EDIT | ||
- | | + | (...displays the help-text for the F$EDIT lexical function) |
</ | </ | ||
Line 49: | Line 49: | ||
(...displays the complete list of lexical functions...) | (...displays the complete list of lexical functions...) | ||
</ | </ | ||
+ | |||
+ | The HELP Lexicals entry lists the Lexical Functions alphabetically, | ||
==== Experimenting With and Learning Lexical Functions ==== | ==== Experimenting With and Learning Lexical Functions ==== | ||
Line 63: | Line 65: | ||
$ | $ | ||
</ | </ | ||
+ | |||
+ | Now you can do things like this: | ||
+ | < | ||
+ | $ wso F$TIME() | ||
+ | 20-NOV-2018 15:33:43.06 | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | ...or: | ||
+ | < | ||
+ | $ string = " | ||
+ | $ wso F$LOCATE( string, "This is a test..." | ||
+ | 10 | ||
+ | $ ! The substring " | ||
+ | $ ! Position 0 is the first character of that string. | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ wso | ||
+ | $ wso F$TRNLNM( " | ||
+ | DSA2: | ||
+ | $ wso F$DIRECTORY() | ||
+ | [LRICKER] | ||
+ | $ wso F$SEARCH( " | ||
+ | DSA2: | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ wso F$MODE() | ||
+ | INTERACTIVE | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ wso F$TRNLNM( " | ||
+ | $32$DKA0: | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ fname = " | ||
+ | $ wso F$PARSE( fname, , , " | ||
+ | LOGIN.COM | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ start = F$TIME() | ||
+ | $ ! ...wait a bit... | ||
+ | $ ! ...dum-de-dum... | ||
+ | $ | ||
+ | $ wso F$DELTA_TIME( start, F$TIME(), " | ||
+ | 0-00: | ||
+ | $ ! Twenty-one seconds later!... | ||
+ | </ | ||
+ | |||
+ | ===== See Also... ===== | ||
+ | |||
+ | For examples of other DCL Lexical Functions in use, see: | ||
+ | |||
+ | * [[Symbol Substitution# | ||
+ | |||
+ | * [[Command File Parameters# | ||
+ | |||
dcl_lexical_functions.txt · Last modified: 2018/12/03 20:02 by lricker