|
| |||||||||||||||
See also: execute_string
_subject
The current folder starts out as the user folder.
"file:///foo/bar.h2o".<execute_file/>
While a file is being executed, its string name is in thing.loading_file .
"returns" can be:
"last" (the default) says return the last value in the file"all" says return a vector of all the values in the file"all_except_null" is like "all" but null values are excluded from the returned vectorenv_or_context parameter behaves just as it does for execute_string and execute_expression .
Example:
The content of the file "junk.h2o" is: x.<plus y/> <file "junk.h2o"/>.<set content='x.<plus y/>'/>
<method foo x=req>
<set y=8/>
<file "junk.h2o"/>.<execute env_or_context=_environment/>
</method>
<foo 7/>![]() | 15 |
execution_kind and returns parameters perform the same functionality as those
parameters in execute_string .
© Copyright 2007 Clear Methods, Inc.