可以使用 perform <form1> using: 的形式实现,多次调用一个form.
如下面的程序所示:
data: str1 type string value 'String1',
str2 type string value 'String2',
str3 type string value 'String3',
str4 type string value 'String4'.
perform write_para using:str1,
str2,
str3,
str4.
form write_para using str type string.
write : / str.
endform.
虽然,我们仅仅是一次perform,但是因为using后面有多个同类型的参数,而且using后面加了冒号。所以,可以发现form write_para被调用了四次。
程序运行后的结果为: