question

shanice.c avatar image
0 Likes"
shanice.c asked Ryan Clark commented

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

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

FlexSim 21.2.0
grouppointer
1638499658151.png (39.1 KiB)
1638499809944.png (141.5 KiB)
1203.fsm (2.4 MiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryan Clark avatar image Ryan Clark commented ·

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 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

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".

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

shanice.c avatar image shanice.c commented ·
Thank you for your help, I've fixed the problem!
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.