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
 Basic Loop

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
ckeiderling Posted - 03/01/2014 : 8:23:51 PM
Hi new to this so any pointers welcome.

My loop does not work and I dont understand why:

loop (x,1,wks.ncols){wcol(x)=100-wcol(x);}

3   L A T E S T    R E P L I E S    (Newest First)
Castiel Posted - 03/02/2014 : 08:29:22 AM
quote:
Originally posted by ckeiderling

Thanks, so basically you can't use wcol()=f(wcol()) inside a loop?

I managed to do this another way:

for(int ii = 2; ii < wks.ncols; ii ++)
{
wcol(ii)=100-wcol(ii);
}

but for some reason it only works when I format it with the new line each time.



I think what really matters is the "x" in wcol(x)....

©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦
ckeiderling Posted - 03/02/2014 : 07:01:05 AM
Thanks, so basically you can't use wcol()=f(wcol()) inside a loop?

I managed to do this another way:

for(int ii = 2; ii < wks.ncols; ii ++)
{
wcol(ii)=100-wcol(ii);
}

but for some reason it only works when I format it with the new line each time.
Castiel Posted - 03/01/2014 : 10:09:18 PM
quote:
Originally posted by ckeiderling

Hi new to this so any pointers welcome.

My loop does not work and I dont understand why:

loop (x,1,wks.ncols){wcol(x)=100-wcol(x);}





loop (x,1,wks.ncols){range rr=wcol(x); rr=100-rr;}


©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦

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