PC-DMIS 2022.1 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

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