Navigation: Scripting Reference Manual > Functions & Subroutines > InitConfigVariable

 

InitConfigVariable

 

Contact Us: fredsupport@photonengr.com

 

Description

This command initializes a T_CONFIGURATION data structure with the following member values:

 

Member

Initialized Value

description

 

entity

-1

type

"Unknown or undefined"

index

-1

subindex

-1

values

 

 

 

Syntax

InitConfigVariable tConfigVar

 

 

Parameters

tConfigVar As T_CONFIGURATION

Data structure being initialized.

 

 

Example

The following script initializes a T_CONFIGURATION data structure and adds a new variable to the configuration list.

 

Sub Main

 

    Dim newConfigVar As Long

    Dim tConfigVar As T_CONFIGURATION

    InitConfigVariable tConfigVar

        Print "Configuration variable initialized."

        Print Chr(9) & "Description:" & Chr(9) & tConfigVar.Description

        Print Chr(9) & "Entity: " & Chr(9) & tConfigVar.entity

        Print Chr(9) & "Index: " & Chr(9) & tConfigVar.index

        Print Chr(9) & "Subindex: " & Chr(9) & tConfigVar.subindex

        Print Chr(9) & "Type: " & Chr(9) & tConfigVar.Type

    newConfigVar = AddConfigVariable( tConfigVar )

 

End Sub

 

 

See Also

Configuration Script Commands

T_CONFIGURATION

 

 

 

 

 

Copyright © Photon Engineering, LLC