T O P I C R E V I E W |
olsy |
Posted - 09/22/2011 : 10:23:51 AM Origin Ver. and Service Release (Select Help-->About Origin): 8.5Pro Operating System:Win7
Hi!
i am trying to use foreach statement to loop over my worksheets but i need to start looping from specified worksheet with name "Statistics". The position of this worksheet can be different so i canīt use it number. Is it possible somehow to access it and set at a beginning of my if circle? |
1 L A T E S T R E P L I E S (Newest First) |
Penn |
Posted - 09/22/2011 : 10:12:53 PM Hi,
You can first get the worksheet name by OriginObject::GetName() method, and then compare with your specified name to see whether that is the worksheet you are looking for. If yes, use the Layer::GetIndex() method to get the worksheet index, then you can finish the rest loop by starting from this index.
Penn |
|
|