Navigation: Scripting Reference Manual > Functions & Subroutines > DeleteIthConfig

 

DeleteIthConfig

 

Contact Us: fredsupport@photonengr.com

 

Description

This command deletes the configuration at the designated index in the configuration list.  Note that a minimum of one configuration must always be defined.  This means that if only one configuration exists, you cannot delete it from the document.

 

 

Syntax

configCount = DeleteIthConfig( configIndex )

 

 

Parameters

configCount (Long)

Returned number of configurations after the configuration is deleted.

 

configIndex As Long

Index in the configuration list whose entry will be deleted.

 

 

Example

The following example deletes all configurations except the 0th index entry.

 

Sub Main

 

    Dim configCount As Long, curConfig As Long

    configCount = GetConfigCount()

    For curConfig = configCount-1 To 1 Step -1

        DeleteIthConfig( curConfig )

    Next curConfig

 

End Sub

 

 

See Also

Configuration Script Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC