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 |
#1
|
|||
|
|||
reading from excel
Hi,
I have an excel file with a cell typed within: normal(10,5,0) I want to read that information to be used as process time. At process time, I coded like this: treenode current = ownerobject(c); treenode item = parnode(1); /**By Expression*/ /** \nExpression: */ string value1=excelreadstr(2,1); double value = /**/tonum(value1)/**/; /** \n\nNote: The expression may be a constant value or the result of a command (getitemtype(item), getlabelnum(item, "labelname"), etc).*/ return value; What's wrong with the codes? Please assist. Chieng |
#2
|
||||
|
||||
Hi,
please take a look at the following command: executestring(str thestring[, node c, node i, obj eventdata]) Description: Executes the given string as flexscript. Parameters 2-4 are the same as executefsnode. Example: executestring("profileevents()"); Greetings Carsten |
The Following 2 Users Say Thank You to Carsten Seehafer For This Useful Post: | ||
michaelsmith (08-09-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
A Few Misc. Notes while reading through the Book | Sean HensleyMSU | Flexsim Student Forum | 3 | 08-19-2011 11:41 PM |
Reading Tables from a Database !! | Nischith Kashyap | Q&A | 6 | 03-03-2011 01:05 AM |
Excel 2002 vs. Excel 2007 | Nico Zahn | Q&A | 2 | 04-27-2009 01:47 AM |
Reading Stats function from global table | David Chan | Q&A | 4 | 05-27-2008 08:51 AM |
What are you reading? | Nico Zahn | Q&A | 4 | 05-09-2008 11:46 AM |