%fname() Function

Top  Previous  Next

%fname() function is used to format the given file name suitable for HTML src attribute.

Syntax:

%fname(file-name-expression)
 

file-name-expression

A string expression that contains a relative or absolute file name in windows file format. The name of a property whose property type is "imgfile" or "file" can also be given as a value. See property types.

 

Example:

%fname(':\Site1\images\a.gif') 

returns 'images/a.gif' 

 

%fname(srcprop) %// The srcprop property contains the file name