Rick,
Thanks.
As it happens, I just found the answer:
.
.
.
# Get the hash that relates field names to field IDs
%fields = ars_GetFieldTable($ctrl, $schema) or die "Couldn't get field table";
# Retreive the entry by its Request ID
%values = ars_GetEntry($ctrl, $schema, $id);
# The currency field I am interested in is called Cost Each
$costfield = $values{$fields{'Cost Each'}});
# Now extract the numeric value and the currency code
$cost = $costfield->{'value'};
$currency = $costfield->{'currencyCode'};
.
.
.
Jerry
Jerry Niman Tel +44 (0)161-247 1474
Head of Information and Communication Technology Services Email
[EMAIL PROTECTED]
the Manchester Metropolitan University Mobile +44 (0)7770 638104
Before acting on this email or opening any attachments you should read the
Manchester Metropolitan University’s email
disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer
>>> Rick Cook <[EMAIL PROTECTED]> 12 Aug 08 14:26 >>>
I remember in v6 that there was a bug that affected the ability to translate
Currency fields on import. You might try copying the value into a character
field and reading that. It will translate the value back correctly when you
move the value from the char to the currency field again.
Rick
On Tue, Aug 12, 2008 at 2:53 AM, Jerry Niman <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am trying to read the value of a Currency field from an ARSPerl script,
> and failing miserably. The online manual isn't giving
> me any inspiration.
>
> I am using ARSPerl 1.91 and ARS 6.03
>
> Can anyone point me at an example?
>
> Thanks,
>
> Jerry
>
> Jerry Niman Tel +44 (0)161-247 1474
> Head of Information and Communication Technology Services Email
> [EMAIL PROTECTED]
> the Manchester Metropolitan University Mobile +44 (0)7770 638104
>
> Before acting on this email or opening any attachments you should read the
> Manchester Metropolitan University's email
> disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer
>
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"