I'm using a loop to populate an output table. The table has mixed data types so I want to know what type of data is in each row before I import it. Is there an easy way to do this?
I'm using a loop to populate an output table. The table has mixed data types so I want to know what type of data is in each row before I import it. Is there an easy way to do this?
Would the following code work if I wanted to look at the type of data in a specific table cell?
if(getvartype(gettablecell("Harvest_Data",1,1))==3)
You'll want to use the getdatatype() command.
To test if the cell is number data:
if(getdatatype(gettablecell("GlobalTable1", 1, 1)) == DATATYPE_NUMBER)
To test if the cell is string data:
if(getdatatype(gettablecell("GlobalTable1", 1, 1)) == DATATYPE_STRING)
4 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