<@APPFILENAME [ENCODING=encoding]>
Returns the name of the current application file. This meta tag is useful for creating links that reference the current application file.
Compare the following two tags:
Note: This meta tag is often
used to create URLs, for example, in the HREF attribute of an anchor
tag in HTML. To make sure that the meta tag returns a properly encoded value,
you can use one of the following:
<@APPFILE ENCODING="URL">
<@URLENCODE STR="<@APPFILE>">
The following example processes different HTML depending on the name of the current application file. You may find this useful in files that are referenced with <@INCLUDE> that are used by several application files but that you would like to behave differently in different application files.
<@IFEQUAL <@APPFILENAME>
customers.taf>
[...HTML to execute...]
<@ELSEIFEQUAL <@APPFILENAME> administrator.taf>
[...HTML to execute...]
<@ELSE>
[...default HTML to execute...]
<@/IF>
<@APPFILE>
<@APPFILEPATH>
<@INCLUDE>
<@URLENCODE>
Copyright © 1999, Pervasive Software. All rights reserved.