Flexscript problem: How to assign a pointer value from a cell to a object?

Flexscript problem: How to assign a pointer value from a cell to a object?

shanice_c
Not applicable
29 Views
3 Replies
Message 1 of 4

Flexscript problem: How to assign a pointer value from a cell to a object?

shanice_c
Not applicable

[ FlexSim 21.2.0 ]

May I ask why the return value(Member1 & Member2) couldn't be assigned to a label called "ToStation". In line 37 the label of 3D model also not reassigned.

In line26 I use Group class to refer to the Table("Table_FindOven"), the cell has a pointer value.

May I ask if it's because I shouldn't assign a pointer value in a cell to Object class directly? How could I fix it? Thank you.


1638499658151.png



1638499809944.png

1203.fsm

0 Likes
Accepted solutions (1)
30 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Explorer
Explorer
Accepted solution

I don't understand what the for-loop at the beginning of your code should achieve. It simply sets "getOvenSet" to 5 each time it runs.

The code works fine on my end though (except the "print" - you probably want to use "Member1.name" to print the name of the object. While a pointer can be printed out on it's ows, it can't be added onto a string).

The issue seems to be that the "toStation" gets assigned to the token, yet in the next activity you try to read it from the item when filling the row in the "TaskTable".

Message 3 of 4

shanice_c
Not applicable
Thank you for your help, I've fixed the problem!
Message 4 of 4

ryan_c10
Not applicable

Hi @Fiona C, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes