Hello FlexSim Support Team,
Could you please tell me how I can separate this text data and put it in a global table column wise using Flexscript?For example: ABCD/EFGH/IJKL so I want ABCD in column 1st and EFGH in column 2nd and IJKL in column 3rd.
Hello FlexSim Support Team,
Could you please tell me how I can separate this text data and put it in a global table column wise using Flexscript?For example: ABCD/EFGH/IJKL so I want ABCD in column 1st and EFGH in column 2nd and IJKL in column 3rd.
You can use string.split() to split a string into an array using "/" as the delimiter:
string text = "ABCD/EFGH/IJKL";
Array cols = text.split("/");
Table table = Table("GlobalTable1");
for (int i = 1; i <= cols.length; i++)
table[1][i] = cols[i];
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved