我从Delphi工具站点上读到这段话
Changes since the last SVN update are:
Added support for FreePascal-like compile-time $INCLUDE “macros”:
%FILE% and %LINE% insert the current filename and line number into the source
%FUNCTION% inserts the current function name, or class.method name into the source
%DATE% and %TIME% allow inserting the compile date/time是否有一种方法可以在DWScript (这些函数除外)中定义宏,就像人们用简单的方式在excel中定义宏(使用VBscript),其中脚本的名称将是以后将使用的函数的名称,而无需在执行的脚本中添加{$Include XXX}?
注:我知道这可以通过管理要保存在一个名为functions for ex的文件中的脚本来完成。然后保存添加的函数及其名称(Add),然后用户会编写Add(1,2)来获得结果;但是我的老板希望它看起来像excel中的vbscript。
发布于 2012-03-13 15:38:24
我不太明白这个问题,所以我会列出各种可能解释的答案.
https://stackoverflow.com/questions/9680242
复制相似问题