I have working shared vars for stringvar and datevar.
Now I'm working w/currency and decimal vars and am running into issues. What am I doing wrong, please?
Example that works (using an XTABLE, and basing results on IDs that relate to template screens):
In Collect Values ...
shared stringvar Name;
IF {Command.CustomTplDID(1)} = '4AM58DC22FS030' THEN Name := ({Command.Description});
then the formula field is created ...
shared stringvar Name;
IF Name > "" THEN Name;
then reset vars ...
shared stringvar Name := "";
That all works.
Dates work, too.
If the field is command.valuemoney or command.decimal, I'm running into problems. How should these be structured, please, to follow the string sample above? What are the defaults for reset vars, and so on?
Thanks very much,
Helen
Now I'm working w/currency and decimal vars and am running into issues. What am I doing wrong, please?
Example that works (using an XTABLE, and basing results on IDs that relate to template screens):
In Collect Values ...
shared stringvar Name;
IF {Command.CustomTplDID(1)} = '4AM58DC22FS030' THEN Name := ({Command.Description});
then the formula field is created ...
shared stringvar Name;
IF Name > "" THEN Name;
then reset vars ...
shared stringvar Name := "";
That all works.
Dates work, too.
If the field is command.valuemoney or command.decimal, I'm running into problems. How should these be structured, please, to follow the string sample above? What are the defaults for reset vars, and so on?
Thanks very much,
Helen