Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Application Server
  • AVEVA Application Server Tech Notes

TN AppSvr107 .Net string function "Split" to separate strings in script

Last updated: March 5th, 2025

Description

  • Author: Joe Hefner
  • Published: March 5th, 2025

Details:

Description

The following script is an example of how the .net string function "split" can be used in the ArchestrA scripting environment to split a string and allow action to be take on the result:

  • Author: Joe Hefner
  • Published: 10/14/2014
  • Applies to: Application Server 3.1 and Higher

Instructions

The script above can be copied from below if desired:

Dim value as System.string;
dim words[9] as System.string;
dim separators[1] as System.string;
dim s as System.string;

separators[1] = ",";

value = "403149,1149696,4kk-INT#47,2014/08/12@06:21:13,60,54332A,0,00000,17";

words = value.Split(separators, System.StringSplitOptions.RemoveEmptyEntries);

for each s in words[]
logmessage (s);
next;

Confirmation of Success

see message log in SMC

divide breakdown
Give feedback about this article

Recommended articles

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand