Collapse All Expand All

PC-DMIS 2019 R1 Object Library |
GetStringArray Method
See Also Example Send Topic Feedback | See Object Hierarchy Chart

PCDLRN ActiveX DLL > PartProgram Object : GetStringArray Method

Glossary Item Box

# Description

Creates an array of strings.

# Syntax

Visual Basic
    Public Function GetStringArray() As StringArray

# Return Type

Returns a StringArray object with the array of strings.

# Example

This example creates a string array with four elements.

Example (C#) | Copy Code
--- | ---
    var stringArray = part.GetStringArray();
        stringArray.SetSize(4);
        stringArray.SetValue(1, "OP10");
        stringArray.SetValue(2, "MiniRoutine2");
        stringArray.SetValue(3, "MiniRoutine3");
        stringArray.SetValue(4, "MiniRoutine4");

# See Also

PartProgram Object | PartProgram Members

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.