[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Database Handle and Global Subs
Sheamus Nulty wrote:
>
> I'v setup the following. I have a global sub defined as follows in my
> interchange.cfg file
>
> GlobalSub <<EOF
>
> sub pdfshea {
>
> my $counter=5;
> return "$counter";
>
> }
>
> EOF
>
> I then run the following
>
> [set print]1[/set]
> [if scratch print]
> [pdfshea]
> [/if]
>
> and it just prints out [pdfshea] to the webpage. So I'm of the opinion that
> [if] will just print out what comes after it .
> If this is the case is my only alternative the solution you provided.
Well, that should certainly not work because a global sub will not
define a usertag. And, if your pdfcreate usertag was, actually, a global
sub, then it will not work either.
This should help you out:
http://interchange.redhat.com/cgi-bin/ic/dev/ictags_91.html
--
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912