Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Multi-line UDFs

$
0
0
[A bit of smoke and mirrors here!]

When you load functions with FUNCTION /R line continuations (^) are respected. This lets you (at least in a sense) define multi-line UDFs (example far below).

Notes:

- I believe the rules are line-continuation removes the newline and leading whitespace on the next line
- Anything inside %@exec[@ ...] is executed and the '@' suppresses @EXEC's return value (it returns an empty string).
- @EXEC is probably limited by the command line length limit...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles