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
|
|||
|
|||
IS num or Str?
Hi,
I look for a command to determine whether a label is string or not? in my scheduled source, I have a combination of num and strings (This would be possible if u copy them from an Excel sheet OR simply change the node type by right clicking the cell). the strings in my case are some numbers sperated by "\" (say, "4\12\3") thanks, |
#2
|
|||
|
|||
Here's the test:
getdatatype(label(<object>,<labelname>))==DATATYPE _NUMBER or test for DATATYPE_STRING. You can also use nodeadddata(<node>,<predefined_type>) Last edited by Jason Lightfoot; 10-13-2010 at 01:00 PM. Reason: had setdatatype not nodeadddata! |
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
shafizad (10-09-2010) |