[pmwiki-users] Problem with $FmtPV;
Patrick R. Michaud
pmichaud at pobox.com
Tue May 22 14:38:12 CDT 2007
On Tue, May 22, 2007 at 03:34:38PM -0400, Ben Wilson wrote:
> On 5/22/07, Vince Admin Account <vadmin at math.uconn.edu> wrote:
> >Patrick, please don't end there. Tell us what should be done.
> >Is it $x="a2007W19" or ...
> >Thanks
>
> $FmtPV = "'a2007W19'"; # Note, there are single quotes inside the
> double quotes. That allows PmWiki to evaluate the string as, er, a
> string.
Oh, right, yes. I didn't completely understand Vince's comment.
If wanting to create a page variable that is a constant string,
then use the format Ben just gave (except that $FmtPV needs an index):
$FmtPV['$SomeVar'] = "'a2007W19'";
Pm
More information about the pmwiki-users
mailing list