9.11 Module Object

Represents an NLM on the NetWare server.

9.11.1 Copyright property

Returns the NLM's copyright notice.

Syntax

object.Copyright

Type

String.

Attributes

Read-only.

Example

This example returns the copyright information of calnlm32.nlm.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
print (Module.copyright)

9.11.2 Date property

Returns the build date of the NLM.

Syntax

object.Date

Type

String.

Attributes

Read-only.

Example

This example returns the build date of calnlm32.nlm.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print ('The NLM was built on") & Module.Date)

9.11.3 Description property

Returns a description of the NLM.

Syntax

object.Description

Type

String.

Attributes

Read-only.

Example

This example returns a description of calnlm32.nlm.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print (Module.Description)

9.11.4 Loaded property

Determines whether or not the NLM is already loaded.

Syntax

object.Loaded

Type

Boolean.

Attributes

Read-only.

Example

This example determines whether or not the NLM is already loaded.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
if (Module.Loaded then 
     print ("calnlm32 is already loaded") 
end if 
set module = Modules.Element ("Sys:temp\test.nlm") 
if (Module.Loaded) then 
     print ("Test.nlm is already loaded") 
else 
     print ("Test.nlm is not loaded") 
end if

9.11.5 MajorVersion property

Returns the major version number of the NLM.

Syntax

object.MajorVersion

Type

Integer.

Attributes

Read-only.

Example

This example returns the major version number of the NLM.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print (Module.MajorVersion) &' is the version of the NLM'

9.11.6 MinorVersion property

Returns the minor version number of the NLM.

Syntax

object.MinorVersion

Type

Integer.

Attributes

Read-only.

Example

This example returns the minor version number of the NLM.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print (Module.MinorVersion) &' is the version of the NLM'

9.11.7 Name property

Returns the name of the NLM.

Syntax

object.Name

Type

String.

Attributes

Read-only.

Example

This example returns the name of the NLM.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print ('The name of the NLM is') & Module.Name)

9.11.8 Revision property

Returns the revision number of the NLM.

Syntax

object.Revision

Type

Integer.

Attributes

Read-only.

Example

This example returns the revision number of the NLM.

set srv = CreateObject ("ucx:Server") 
set modules = srv.modules 
set module = Modules.Element ("calnlm32.nlm") 
     print (Module.Revision) &' is the revision number of the NLM