Servicio ScriptForge.Platform

El servicio Platform ofrece una colección de propiedades sobre el entorno y el contexto de ejecución actuales, tales como:

note

Todas las propiedades del servicio Platform son de solo lectura.


Invocación del servicio

The code snippet below instantiates the Platform service and accesses the Architecture property.


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

Este servicio es totalmente compatible con los lenguajes de programación BASIC y Python. Todos los ejemplos se expresan en el lenguaje BASIC, pero pueden convertirse fácilmente a Python.


Propiedades

Nombre

De solo lectura

Tipo

Descripción

Architecture

String

La arquitectura en bits del equipo. Ejemplo: «32bit» y «64bit»

ComputerName

String

El nombre en red del equipo.

CPUCount

Integer

El número de unidades centrales de procesamiento.

CurrentUser

String

El nombre de la cuenta de usuario activa.

Machine

String

El tipo de máquina. Algunos ejemplos son: «i386» o «x86_64».

OfficeVersion

String

The actual LibreOffice version expressed as
' LibreOffice w.x.y.z (The Document Foundation)'.

Example: 'LibreOffice 7.1.1.2 (The Document Foundation, Debian and Ubuntu)'

OSName

String

The operating system type. Example: 'Darwin, Linux' or 'Windows'.

OSPlatform

String

A single string identifying the underlying platform with as much useful and human-readable information as possible.

Example: 'Linux-5.8.0-44-generic-x86_64-with-glibc2.32'

OSRelease

String

The operating system's release. Example: '5.8.0-44-generic'

OSVersion

String

The operating system's build or version.

Example: '#50-Ubuntu SMP Tue Feb 9 06:29:41 UTC 2021'

Processor

String

El nombre real del procesador. Ejemplo: «amdk6».

This property may return the same value as the Machine property.


warning

Todas las rutinas o los identificadores Basic de ScriptForge que comienzan por un guion bajo «_» son únicamente para uso interno. No deben utilizarse en macros Basic.