ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
|
Downloads |
Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook. |
#1
|
|||
|
|||
How to write a custom function/method
Hi. I was wondering how to write a custom user function eg. a binary to decimal converter. The function may look like this:
function binaryToDecimalConverter (String binary) { do some calculation; return the decimal value; } Also, how to call such custom functions. A help on this topic would be much appreciated. Anyone willing to help does not have to write the function for me, just the basic syntax is welcomed . Please let me know if any documentation is available on this topic. |
Tags |
custom function, custom method |
Thread | Thread Starter | Forum | Replies | Last Post |
How to write a User Command ? | mearjun | Flexsim Student Forum | 7 | 12-08-2012 11:44 AM |
How to write coding for that? | stmyint | Container Terminal (CT) Library | 5 | 10-29-2012 08:03 PM |
Is there any method to add section to conveyor using flexscript command? | harry qin | Q&A | 6 | 06-19-2010 11:47 PM |
Can I write to the system console? | Steven Hamoen | Q&A | 2 | 11-26-2008 06:37 AM |
improve Connections method | qin tian | Gripes and Goodies | 7 | 03-26-2008 09:42 AM |