Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Unknown defined name DATEVALUE in formula
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jmcnamara  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 6:38 am
From: jmcnamara <jmcnam...@cpan.org>
Date: Mon, 20 Aug 2012 03:38:46 -0700 (PDT)
Local: Mon, Aug 20 2012 6:38 am
Subject: Re: Unknown defined name DATEVALUE in formula

On Aug 20, 11:04 am, Costi <constantinmihaiste...@gmail.com> wrote:

> $worksheet->write_formula($row, $col, '=DATEVALUE("%s", $field[$j])', $format_date);

Hi,

The issue here is that single quotes don't allow interpolation
(variable evaluation) in perl. For example consider the output of the
following:

    my $str = 'Hello';

    print '$str';   # Prints: $str
    print "\n";

    print "$str";   # Prints: Hello
    print "\n";

So you probably need something like this:

    $worksheet->write_formula($row, $col, "=DATEVALUE($field[$j])",
$format_date);

See the following for more information:

    http://perlmeme.org/howtos/using_perl/interpolation.html

John.
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.