question

David Chan avatar image
0 Likes"
David Chan asked Joerg Vogel edited

Adding a table reference as flexscript to object property

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

FlexSim 23.0.12
quotation marksadd flexscript to propertytable reference
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered David Chan commented

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.

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

David Chan avatar image David Chan commented ·

The new line is as below

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

David

0 Likes 0 ·