question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

What is the problem with the executedstring command?

code.jpg


in the attached code file, the stringcopy command in line 13 produces the numerical value of the room number but the executestring command in line 15 does not increment the global variable, Rm3, for example. How can I correct this?

Thanks,

Tee

FlexSim HC 5.1.0
healthcarecommands
code.jpg (194.8 KiB)
5 |100000

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

1 Answer

·
Jacob Gillespie avatar image
0 Likes"
Jacob Gillespie answered Tee Hiett commented

Your executestring() call will be executing:

Rm3RmName ++

You should change it to:

executestring(concat("Rm",Roomstr,"++"));
· 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.

Tee Hiett avatar image Tee Hiett commented ·

Thanks, Jacob.

Tee

0 Likes 0 ·

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.