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:

Undef

static void Undef(obj variable)

Deletes a variable

Description:

Requires as a parameter an object identifier, i.e. a variable belonging to any class. The supplied object is made undefined and it will behave from now on as if it was have never defined. The Undef method returns void.

Undef(myVar)

Parameters:
variable

the variable to delete

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. To validate the parameter to Undef, a code fragment code similar to the following can be used:

if (IsDef("myVar"))
	Undef(myVar)

The Undef function cannot be used on “literal” variables or on the result of an operation. The code fragments:

Undef("foo") // error Err_IllegalUndef!

and

Undef(a + b) // error Err_IllegalUndef!

both generate the Err_IllegalUndef error.

See also:

IsDef, Err_IllegalUndef

Implementation:
C
 

Return to the curScript class