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
 LabTalk Forum
 How to loop over window names ?

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
Nilsdalby Posted - 07/10/2002 : 7:28:43 PM
Hi

My problem is that i need to perform FFT's on app. 120+ datasets. The code in the labtalk manual (p.261 v.6 labtalk)demonstrate how access to FFT is done via labtalk. The problem arise when results from the FFT is put into the called FFT window template (FFT1). I am probably able to loop over columns by %(%H,ii), but how can i loop over window names ? (i.e. FFT1, FFT2...FFT120)

Any comments appreciated, Nils
2   L A T E S T    R E P L I E S    (Newest First)
Nilsdalby Posted - 07/10/2002 : 10:54:10 PM
Hi Mike

Thanks for the help. That helped.

Nils
Mike Buess Posted - 07/10/2002 : 10:29:01 PM
Hi Nils,

There are probably several ways to do what you want and I'll just mention the simplest that come to mind.

Method 1> If your worksheet windows are named FFT1 through FFTnn, this should work...

loop (ii,1,nn) {
%A=FFT$(ii); // Assign window name to %A
--scripts to handle your window--
};

Method 2> If your worksheet window indices (ii) are not consecutive you could loop over all windows and test each to see if its name starts in FFT...

doc -e W {
if("%[%H,4]"=="FFT") {
--scripts here, %H holds the wks name--
};

I hope that helps.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 07/10/2002 22:30:15

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