{INCLUDE _LOGOS_C.HTM}

mv/WEB
Syntax Documentation

Documentation for build 2.0.0.116
June 22, 1998

mv/BASIC Syntax Statements

The following statements are added to the mv/BASIC language for use with the mv/WEB environment.  In order to use any of these statements, they must appear by themselves without other statements or comments on the same line.  You can indent these statements with spaces to improve program readability and formatting.


_PROGRAM

You must define the target location that an mv/WEB application file will be generated to.  The syntax of this statement is:
_PROGRAM filename itemname
The PLZ program will generate an application with the name "itemname.HTM" in the specified file.  You can use this name to access the generated program through the Coyote web server.

This statement must be the first statement in the program.


_SUBROUTINE

If you are defining an mv/WEB subroutine (as opposed to a main-line program), you use the _SUBROUTINE statement to tell the PLZ program the file and name to generate.  The syntax of this statement is:
_SUBROUTINE filename itemname {parameter{,parameter...}}
The PLZ program will generate an application subroutine with the name "$itemname.HTM" in the specified file.  You can use this generated subroutine as the target of a _CALL statement.  You cannot access these subroutines directly from the web but only by calling it from an mv/WEB application.

This statement must be the first statement in the subroutine.


_INCLUDE

You can use the _INCLUDE statement to include source code from other files.
_INCLUDE FILE filename itemname
_INCLUDE HOST hostpath
_INCLUDE DSG dsgname dsgpath
You should use the _INCLUDE syntax instead of the base system INCLUDE statement if the included item has any mv/WEB specific statements.


_CALL

You can use the _CALL statement to call an external mv/WEB subroutine. The syntax of this statement is:
_CALL "subname" {parameter{,parameter...}}
_CALL variable {parameter{,parameter...}}
You can use this command to call external mv/WEB subroutines.  The first parameter can either be the name of the subroutine enclosed in quotes, or an mv/BASIC variable or expression that contains the subroutine name.


_GOSUB

You can use the _GOSUB statement to call a local subroutine.  The syntax of this statement is:
_GOSUB label
You should use the _GOSUB statement instead of the system GOSUB statement in any case where the calling subroutine contains any mv/WEB specific statements.


_RETURN

You can use the _RETURN statement to return from an external mv/WEB subroutine or from an internal subroutine that was called with the _GOSUB statement. The syntax of this statement is:
_RETURN


_PVAR

The _PVAR statement is used to define a variable or list of variable as persistent for the application.  When a variable is defined as persistent, the mv/WEB environment will maintain the value of the variable across mv/WEB subroutine calls and page calls.  The syntax of this statement is:
_PVAR variable{,variable...}


_CVAR

The _CVAR sttement is used to define a common variable or list of variables. Common variables are always persistent for the application.  If you define mv/WEB common variables, these variables will be shared between the main-line application and mv/WEB subroutines.  The syntax of this statement is:
_CVAR variable{,variable...}
It is good coding practive to create a single item with _CVAR definiations and let all application programs and modules _INCLUDE this definition item. This makes it easier to keep common variables in sync as an application is developed.


_FILE

The mv/WEB environment does not allow open file variables to be stored in persistent or common variabled.  You can use the _FILE statement to declare a file that mv/WEB is to open for you.  The syntax of this statement is:
_FILE filename variable
_FILE DICT filename variable
Use of this statement is a convenience only.  It is actually more efficient for you to open data files to a local variable when you need to use them then it is to use the _FILE statement.


_PAGE

This statement is used to invoke an HTML page that will be created and displayed to the user.  The mv/WEB environment will save all persistent and common variables, transmit the page to the user, and then wait suspended until the user submits the page.  The syntax of this statement is:
_PAGE FILE filename itemname
_PAGE HOST hostpath
_PAGE DSG dsgname dsgpath


_TIMEOUT

The default behavior for the mv/WEB environment is for application state information to be maintained for 2 hours from the last page access. This statement allows you to adjust this amount of time on a page by page basis.  The syntax of this command is:
_TIMEOUT "hh:mm:ss"
_TIMEOUT variable


mv/BASIC Statements with Limitations

The following mv/BASIC statement are either not usable, or have limitations in the mv/WEB environment.

Variable Declarations

You cannot use:

Program Construction

You cannot use INCLUDE or $INCLUDE type program constructions where the included source code (or any code that it includes) contains any mv/WEB statements.

External Subroutines

You can call external mv/WEB subroutines with the CALL statement provided that the external subroutines:

Internal Subroutines

You can call internal subroutines with GOSUB and RETURN provided that:

Executing Commands

You can execute external mv/WEB commands with the mv/WEB EXECUTE command provided that:


When Variables are Cleared

Variables that are not defined as persistent or common with _PVAR or _CVAR statements will be lost whenever your application program or subroutine encounters any of the following statements:


mv/WEB Run-Time and Compile-Time Limiations

Because of the nature of the mv/WEB environment, there are some limitations as to the number of variables, HTML insertion points, etc.
Modular Software - Home PicLan-IP - Home
© Copyright 1996-1998  Modular Software Corporation.All rights Reserved.