Navigation: Scripting Reference Manual > Functions & Subroutines > InsertIthConfig

 

InsertIthConfig

 

Contact Us: fredsupport@photonengr.com

 

Description

This command inserts a new configuration into the configuration list at the designated index.  If the new configuration is inserted at index N,  the variable values of the new configuration are identical to those of configuration N+1 (which used to be at index N, prior to insertion).

 

 

Syntax

configCount = InsertIthConfig( configIndex )

 

 

Parameters

configCount (Long)

Returned number of configurations after the new configuration has been inserted.

 

configIndex As Long

Index in the configuration list at which the new configuration will be inserted.

 

 

Example

The following example inserts a new configuration at index 2 and prints out the new configuration count.

 

Sub Main

 

    Dim insIndex As Long

    insIndex = 2

 

    Dim configCount As Long

    configCount = InsertIthConfig( insIndex )

    Print "Configuration inserted at index " & insIndex

    Print "Configuration count: " & configCount

 

End Sub

 

 

See Also

Configuration Script Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC