question

random_user_777 avatar image
0 Likes"
random_user_777 asked Joerg Vogel commented

Debugging flexscript errors on a simple pr("Hello. World!"); command

New to Flexsim and not very familiar with C++. I have been trying to use flexscript to automatically multiple queues and processors based on a csv file input. That script did not compile so I tried doing a simple pr("Hello, World!"); instead and it still returns "Too many parameters in call to command pr".

What am I doing wrong here?

FlexSim 23.0.15
flexscript
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Joerg Vogel commented

You can use the command help in FlexSim directly or the online documentation to get information about commands and their parameters.

capture1.png

pr() (which doesn't use a parameter), pf() and pt() are all deprecated. The recommended command is print().


capture1.png (7.4 KiB)
· 2
5 |100000

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

random_user_777 avatar image random_user_777 commented ·
Getting that in an error message would have been really helpful. Thanks for the response!
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel random_user_777 commented ·
@random_user_777 , If you write a valid name of a command, method or property and your cursor stays a bit longer in this word, you get a hint to this command. It tells you also, if it is deprecated.
0 Likes 0 ·