Jon Jensen wrote:
> Right: If you have &fatal = yes (I think) set, and you put the &set
> blarg 1 after your checks, then the first check that fails will abort
> the profile, and value blarg will not be set.
Cheers. This did help me.
>From RTFM site:
> *&fatal*
>
> Set to '&fatal=yes' if an error should generate the error page.
>
The documentation implies to me that the profile will finish entirely
before generating the error page, and not stop at that point. So to know
that was great. However the variable I wanted to set was a scratch
variable and not in the values space (I assume these are different things?).
I created a new subroutine &scratchset in Order.pm, very similar to &set.
'&scratchset' => sub {
my($ref,$params) = @_;
my
($var, $value) = split /\s+/, $params, 2;
$::Scratch->{$var} = $value;
},
Thanks for your help.
Sandy.
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.