Maxscript

Maxscript

MaxScript command processor is an interpreter that implements a subset of the xBase programming language especially conceived to be used inside web pages to provide server side scripting capabilities. MaxScript is not to be confused with MAXScript, the scripting language of the 3D animation package 3ds Max.

As a command processor, MaxScript needs a web server to work with: whenever the web server receives a request for a MaxScript page it must pass it to the interpreter, that parses all the lines, top to bottom, in search of xBase cod to be executed. Then the page is passed back to web server that deliveries it to web browser.

MaxScript pages use the file extension .MSP. MSP pages are standard HTML pages: they can contain XHTML and Javascript code, as well as xBase code. xBase statements can consist on hundreds of lines or single function calls, always included into HTML server-side tags.

Tags for maxScript are similar to those used for PHP and other server-side scripting languages: to start xBase code into a web page the tag <% must be used. The tag %> marks the end of code. MaxScript is used as the core of freeware products like dbfree and in its commercial counterpart DBMax

The latest version (2.21) is dated 2008 and implements a large subset of xBase commands and functions, and the capability of writing UDFs (User Defined Function) to be integrated in the language.

MaxScript was expressly designed to dynamically present live data on the internet and acts as a web server extension to process xBase/Clipper code from inside an HTML page. As such the interpreter needs a web server to work with, and all the pages to be processed must reside on a web site accessible to it.

The MaxScript Engine comes in form of a win32 executable and implements an xBase, Clipper-like, programming language reach of features, commands and functions for any and all web application purposes, and uses built-in drivers to dynamically access live data from DBF[disambiguation needed ] tables and present them to internet without the need of ODBC or ADO connections.

The engine supports most of the command and function of xBase (as USE, SET FILTER, INDEX, CREATE, etc.) and flow control structures (as DO..WHILE, DO..CASE, IF..ENDIF) and tens of standard xBase functions (for date handling, string manipulation, math managing, direct file access, etc.). User defined functions are also supported, and external libraries are provided for further extend language functionalities.

A simple hello world application:

<html>
 
<body>
 
Hello World! Time is <% ? time()%> 
 
</body>
 
</html>

A complete statement (opening a table and printing all the content, one record per line):

<html>
 
<body>
<p>List of all customers:<br>
<%
use CUSTOMERS
go top
do while not eof()
   ? CUST_NO | NAME | SURNAME | ADDR | ZIPCODE | TOWN | STATE html
   skip
enddo
%>
</body>
 
</html>

An example of control structures:

<%
nnn := 0  //-- creating a var (numeric type)
//-- looping 
do while nnn < 5
  nnn := nnn+1  //-- increasing
  if nnn =
     exit
  endif
enddo
%>

The above samples are relative to the current implementation used by dbfree and its commercial sibling DBMax.

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • MAXScript — Класс языка: скриптовый, структурный, императивный, объектно ориентированный Тип исполнения: компилируемый Появился в: 1997 Автор(ы): Джон Уэйнрайт (John Wainwright), Ларри Минтон (Larry Minton) …   Википедия

  • Dbfree — is a free software package for Microsoft Windows (x32/x64) that includes a web server and an interpreter (Maxscript) intended for developing web applications based on the xBase language dialect and conventions. Web applications built with DBFree… …   Wikipedia

  • 3ds Max — Infobox Software name = Autodesk 3ds Max caption = Version 2008 interface with a dark theme developer = Autodesk Inc. latest release version = 2009 (11.0) latest release date = April 2008 operating system = Windows (2000, XP or Vista) genre = 3D… …   Wikipedia

  • Autodesk 3ds Max — Тип трёхмерная графика Разработчик Autodesk …   Википедия

  • Autodesk 3ds Max — Version 2010 interface with a rendered Utah teapot D …   Wikipedia

  • Kaleida Labs — was one of several joint ventures between Apple Computer and IBM in a period of alliance between the two companies. The two computer giants sought to counter the influence of Microsoft and the growing dominance of its Windows operating system.… …   Wikipedia

  • John Wainwright (computer scientist) — John Wainwright is a computer scientist, born in Australia, who has pioneered the development of pure object based computer languages. He is the principal architect of two computer languages, ScriptX (1992 1996) and MaxScript (1996). In 1992,… …   Wikipedia

  • List of programming languages by category — Programming language lists Alphabetical Categorical Chronological Generational This is a list of programming languages grouped by category. Some languages are listed in multiple categories. Contents …   Wikipedia

  • List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… …   Wikipedia

  • Technical director — The Technical Director (TD) or Technical Producer (TP) is usually the most senior technical person within a Software Company, Theatrical company, or Film/Television Studio or agency. This person usually possesses the highest level of competence… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”