关于水晶报表的formula全局变量的问题!

songhuashao 2003-02-10 02:54:43
请问我现在有两个formula,一个aaa,另一个bbb,我在bbb中定义的一个shared的变量!我在aaa中要如何对他负值?
...全文
142 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
FreshAir 2003-02-11
  • 打赏
  • 举报
回复
在aaa的开头,也要对这个shared变量进行定义(与bbb中定义一样,但不赋初值),
然后,就可以对其进行引用或赋值。
shellmark 2003-02-10
  • 打赏
  • 举报
回复
Shared variables (Crystal syntax)
Shared variables use the same memory block to store the value of a variable throughout the main report and all of its subreports. Thus shared variables are even more general than global variables. To use a shared variable, declare it in a formula in the main report as in the following example:

Shared NumberVar x := 1000;

and declare it in a formula in the subreport as in the following example:

Shared NumberVar x;

In order to use shared variables, the variable must be declared and assigned a value before it can be passed between the main report and the subreport.
13161795500 2003-02-10
  • 打赏
  • 举报
回复
关注!UP!抢分!

807

社区成员

发帖
与我相关
我的任务
社区描述
VB 多媒体
社区管理员
  • 多媒体
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧