LIBPATH()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return the string "../../library/"

Syntax

LIBPATH()

See Also

APPDIR(), DATADIR(), DEFAULT(), Lianja System Object, LIBDIR(), PATH(), SET DATADIR, SET DEFAULT, SET PATH, SYS(), Visual FoxPro Server Pages

Description

The LIBPATH() function returns the string "../../library/".

See LIBDIR() for obtaining the name of the current library directory.

Example

LIBPATH() can be used as a shortcut for the library path in rsp files *

<%@ Language=VFP %>
<html>
<head>
<style>
<%@ include="catalogview.css" %>
</style>
<%
///////////////////////////////////////////////////////////////////////////////////////////////////////////
set macros on
set fixed on 
private m_libpath = libPath()
? '<link rel="stylesheet" href="&m_libpath/bootstrap-3.3.4/css/bootstrap.min.css">'
? '<script src="&m_libpath/jquery-1.10.2/jquery-1.10.2.min.js" type="text/javascript"></script>'
? '<script src="&m_libpath/bootstrap-3.3.4/js/bootstrap.min.js" type="text/javascript"></script>'
%>
</head>
<body style='overflow:auto'>
<%
// ...
* Note: not for PhoneGap Apps.  
  See rsp examples in the lianja\cloudserver\tenants\public\wwwroot\library\ directory.