The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 worksheet position number

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000