Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

curApp

Method:

GetPubVariable

static obj GetPubVariable(string application, string scope, string name)

Description:

To access the value of a variable published by another applicationuse the function GetPubVariable. The name of the application that published the variable, as well as the scope and name of the published variable, must be specified. The function returns a copy object of the published variable, and therefore modifications of the returned variable have no effect on the original variable.

Parameters:
application

the application the variable we are requesting belongs to

scope

the scope of the variable as a string. Possible values are "application", "session" or "persistent"

name

the name of the variable

Returns:

a copy of the published variable

Notes:

If the user is not sure if the variable exists (or if it has not yet been published) he can wrap the code between error.Resume and error.Suspend calls in order to avoid stop of the script, as in:

error.Resume()
if (a = curApp.GetPubVariable("anApp", "session", "aVar"))
  ...
error.Suspend()

Errors:

If the application doesn't exist the error Err_NoSuchApplication is throwed.

If the application exists but has not such a variable the error Err_VariableNotDefined is throwed.

If the application exists but has never published the variable the error Err_VariableNotPublished is throwed.

See also:

curApp.Publish, curApp.Unpublish, error.Resume, error.Suspend

Implementation:
C
 

Return to the curApp class