ScriptForge.Platform service

The Platform service provides a collection of properties about the current execution environment and context, such as:

note

All properties of the Platform service are read-only.


A szolgáltatás igénybevétele

Before using the Platform service the ScriptForge library needs to be loaded or imported:

note

• Basic macros require to load ScriptForge library using the following statement:
GlobalScope.BasicLibraries.loadLibrary("ScriptForge")

• Python scripts require an import from scriptforge module:
from scriptforge import CreateScriptService


The examples below in Basic and Python instantiate the Platform service and access the Architecture property.

In Basic

      GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")
      Dim platform As Variant
      platform = CreateScriptService("Platform")
      MsgBox platform.Architecture
    
In Python

      from scriptforge import CreateScriptService
      svc = CreateScriptService("Platform")
      bas = CreateScriptService("Basic")
      bas.MsgBox(svc.Architecture)
    

Tulajdonságok

Név

Írásvédett

Típus

Leírás

Architecture

Igen

String

The hardware bit architecture. Example: '32bit' or '64bit'

ComputerName

Igen

String

The computer's network name.

CPUCount

Igen

Integer

The number of central processing units.

CurrentUser

Igen

String

The name of the currently logged user.

Extensions

Igen

Karaktertömb

Returns a zero-based array of strings containing the internal IDs of all installed extensions.

FilterNames

Igen

Karaktertömb

Returns a zero-based unsorted array of strings containing the available document import and export filter names.

Fonts

Igen