Adding a table reference as flexscript to object property

Adding a table reference as flexscript to object property

chanykE2WUT
Explorer Explorer
3 Views
2 Replies
Message 1 of 3

Adding a table reference as flexscript to object property

chanykE2WUT
Explorer
Explorer

[ FlexSim 23.0.12 ]

Hi!

I am not if this has been answered before. What I am trying to do is to add flexscript to a property For my case is cycle time.

I have reference from the answer from the following link to add flexscript.

https://answers.flexsim.com/questions/56592/create-on-draw-trigger-in-1000-networknode-using-s.html

But one of my line is

"Variant tableID = "GlobalTable1_2";\n"+

I got the following error

syntax error, unexpected identifier, expecting ';' Could not finish parsing because of previous errors.

The model is enclosed. Please advise how should I change.

Thanks

David

AutoBuild_Jack_1.fsm

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

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

It lools like you want to add a double quotation mark into a string as character. Have you tried to use an escape sequence like \" ?

In such a case I look for answers in the internet globally. And in combination of a keyphrase like c++ I get answers.

0 Likes
Message 3 of 3

chanykE2WUT
Explorer
Explorer

The new line is as below

"Variant tableID = \"GlobalTable1_2\";\n"+

David

0 Likes