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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 can't customize iteration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Song421

China
2 Posts

Posted - 09/19/2017 :  08:54:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear all,
I have two sections that do the same thing.However, the second one doesn't work(nothing happens!).
I really appreciate your help.
Thanks

[section1]
int beginning = 2
int ending = 11
for(ii=beginning;ii<=ending;ii++){
smooth iy:=[%H]$(page.active)!$(ii) method:=aav weight:=1 npts:=20 oy:=[%H]$(page.active)!$(wks.ncols+1)
}
[section2]
for(ii=2;ii<=11;ii++){
smooth iy:=[%H]$(page.active)!$(ii) method:=aav weight:=1 npts:=20 oy:=[%H]$(page.active)!$(wks.ncols+1)
}

Edited by - Song421 on 09/19/2017 08:56:12 AM

Hideo Fujii

USA
1582 Posts

Posted - 09/19/2017 :  10:03:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Song421,

The first two lines (with int) in section1 need semicolons at the end. It shouldn't run. By fixing this, as far as I tested,
both sections worked okay.

--Hideo Fujii
OriginLab
Go to Top of Page

Song421

China
2 Posts

Posted - 09/19/2017 :  10:36:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Hideo Fujii

Hi Song421,

The first two lines (with int) in section1 need semicolons at the end. It shouldn't run. By fixing this, as far as I tested,
both sections worked okay.

--Hideo Fujii
OriginLab


Thank you very much! I think I should read the tutorials carefully.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000