[TOC] [Prev] [Next] [Bottom]



<@APPFILENAME>

Syntax

<@APPFILENAME [ENCODING=encoding]>

Description

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>">


Example

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>

See Also

<@APPFILE>
<@APPFILEPATH>
<@INCLUDE>
<@URLENCODE>



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1999, Pervasive Software. All rights reserved.