Cancel
Showing results for 
Search instead for 
Did you mean: 

separate string

Creator
Creator

I have input in the attachment and it should be inputed to the shift calender..

Its only one string in a cell of excel and inputed to plant simulation through readexcel method into table file

 

tablefile.readexcel("string.txt");

 

Please let me know how can i do it..

2 REPLIES

Re: separate string

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Amar,

your string does not contain the necessary data for the ShiftCalendar object.

Insert a Variable object of type table and read the shiftPlan of a ShiftCalendar object by the following instruction:

Variable := ShiftCalendar.shiftPlan

You will understand the structure of the shift plan.

Then you must extract the data by string functions, like

str := copy(str,pos("Pause",str)+9, strLen(str))
str := omit(str,strLen(str)-1,3)
variable[11,1] := str
ShiftCalendar.shiftPlan := variable

Regards,

Peter

Re: separate string

Creator
Creator
Thank you!


Thanks
Amar Singh