关于使用宏和exescript的几种用法
1. & 操作符
一般用法
nCount = 1
lcStr = [nCount]
?&lcStr 的结果是1
内嵌字符串
lcStrPart = [are]
lcStr = [we &lcStrPart foxers]
?lcStr的结果是 we are foxers
外嵌字符串形成变量
lcStr = [we are foxers]
lcFlag = [Str]
?lc&lcFlag 的值是we are foxer
2.()
选择别名
lcAlias = Alias()
.....
Select (lcAlias)
3.exescript(cCommand ,[tparameters],...)
lcCmd = [MessageBox("being...")] + chr(13) + [Messagebox("End...")]
ExeScript(lcCmd)
ExeScript这个函数是vfp7增加的 ,可以用于web 和或者可以实现将代码放于数据库的构思。
我写的不一定详细,请知道更加详细的foxers 不上