Description

Retrieves critical system information, such as the OpenInsight serial number, the station ID, and the maximum number of users, from Open Engine.

Syntax

Get_Sysinfo()

Returns

The following information is returned, in a tab delimited variable if using the [OpenInsight_Properties_RECEIVER|System Receiver property]] of an edit box, or separated by commas if run from the System Monitor:

Field NumberDescription
1Database ID
2Username
3User level
4OpenInsight Serial Number
5OpenInsight Version
6CPU Type
7Math Coprocessor (0 = none, 1 = coprocessor installed)
8n/a
9n/a
10Network Identifier
11Station ID
12Maximum number of users

Note: Since Get_Sysinfo() is a routine, the result is not returned directly to the calling routine. However, by setting the System Receiver property of an edit box, the result can be returned in a window context. See the example below.

See also

Serial()GetNetworkUserName()Receiver property

Example: Returning System Information Using the System Monitor

Enter the following:

RUN GET_SYSINFO

This will display system information delimited by commas.

Example: Returning System Information from a Window

/*  Create a window with an edit box named EDITBOX_RESULTS.
If you don't want the edit box to display, uncheck the Visible property.
Then create a button and place this code in the CLICK event of the button.
The code below will save system information as a field mark delimited array
in an operating system file named C:\SYSINFO.TXT.*/
Set_Property ("SYSTEM", "RECEIVER", @window: ".EDITBOX_RESULTS")
Set_Property (@window: ".EDITBOX_RESULTS", "TEXT", "")
get_sysinfo()
system_info = Get_Property (@window: ".EDITBOX_RESULTS", "TEXT")
convert char(9):char(13):char(10) to @fm in system_info
OSWRITE system_info on 'C:\sysinfo.txt'
* reset the receiver property to null.
Set_Property ("SYSTEM", "RECEIVER", "")
  • No labels