cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to assign a single cell element of an infotable to an independent variable?

vsrilekha
1-Newbie

How to assign a single cell element of an infotable to an independent variable?

Hi all,

               I have a requirement such that I need to extract one particular cell value from the infotable data I have already tried this

var m= myInfotablename.Fieldname.getRow(rowIndex);

var result=m;

But as the element that I want to extract is of date time base type I have given output as datetime.

It's showing the above mentioned error where data is the name of my InfoTable and "Thu Mar 02 2017 06:13:15 GMT-0500(EST)" is the first row element that I wanted to assign to variable "m".

Please help on this

1 ACCEPTED SOLUTION

Accepted Solutions
posipova
20-Turquoise
(To:vsrilekha)

Try varm=myInfotablename.rows[RowNumber].Fieldname

View solution in original post

2 REPLIES 2
posipova
20-Turquoise
(To:vsrilekha)

Try varm=myInfotablename.rows[RowNumber].Fieldname

Thanks a lot. It worked

Top Tags