MikeCopeland
Programmer
Using CRXI...
How does one use global data? How is it accessed and used in a report? For example, I've written a small function:
// @testGlobal - root test of global variable MRCopeland
Global NumberVar p17;
p17 := -17
It has no errors, but what does it actually _do_ insofar as manipulating "p17", and how do I use that data? I can't see how to access "p17".
The reason I'm exploring this feature (and it may be the wrong approach...) is that I need to do several things in a function (make a test, produce/modify several pieces of data, have those variables available in subtoal and total lines), and I don't know how to do such things. AFAIK, a function returns only one type of data value, and its return value is accessed placing that function on the report (or in another function or group formula). However, since the formula syntax allows compound statements, I assume (and hope!) that I can have a formula do multiple things (produce an object, increment totals, etc.).
Am I wrong in this? If so (or not), how do I accomplish comllex actions in CR? TIA
How does one use global data? How is it accessed and used in a report? For example, I've written a small function:
// @testGlobal - root test of global variable MRCopeland
Global NumberVar p17;
p17 := -17
It has no errors, but what does it actually _do_ insofar as manipulating "p17", and how do I use that data? I can't see how to access "p17".
The reason I'm exploring this feature (and it may be the wrong approach...) is that I need to do several things in a function (make a test, produce/modify several pieces of data, have those variables available in subtoal and total lines), and I don't know how to do such things. AFAIK, a function returns only one type of data value, and its return value is accessed placing that function on the report (or in another function or group formula). However, since the formula syntax allows compound statements, I assume (and hope!) that I can have a formula do multiple things (produce an object, increment totals, etc.).
Am I wrong in this? If so (or not), how do I accomplish comllex actions in CR? TIA