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

curScript

Method:

IsDef

static boolean IsDef(string name)

Checks if a variable is defined

Description:

If we need to know if a variable is defined or undefined, we can use the method IsDef. This method requires a string called name as a parameter and returns the true value if a variable with identifier name exists, or false if no variable with identifier name exists. Example:

if (curScript.IsDef("myVar"))
	print(myVar)

Parameters:
name

the name of the variable to check

Notes:

Notice that the IsDef function, unlike Undef, does not take an object as parameter, but rather a string containing the object name. This avoids an error condition if the variable has never been defined. In the case of the Undef function, an error condition should occur, because it is not legal to invoke Undef on an undefined object.

See also:

Undef

Implementation:
C
 

Return to the curScript class