[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Problem with [calc] and [scratch] variables
****** message to minivend-users from Ramsey French <rammjet@mac.com> ******
Thanks, Joachim!
> ****** message to minivend-users from jojo@buchonline.net ******
>
>> ****** message to minivend-users from Ramsey French <rammjet@mac.com>
>> ******
>>
>> When I [calc] two [scratch] variables and place the result into a [scratch]
>> variable, an extra space or unprintable character ends up prepended to the
>> final [scratch] variable. This presents a problem when testing with [if] or
>> using it as a key for searching in a table.
>
> Try
>
> [perl arg=scratch]
> $Safe{'scratch'}{'var1'} = 10;
> $Safe{'scratch'}{'var2'} = 3;
> $_ = $Safe{'scratch'}{'var1'} + $Safe{'scratch'}{'var2'};
> $Safe{'scratch'}{'out'} = $_;
> return '';
> [/perl]
> <BR><BR>
> test out=[scratch out]
>
> Joachim
>
> --
> Hans-Joachim Leidinger
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list