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
 Origin does not execute my script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

judywatts

USA
1 Posts

Posted - 10/31/2024 :  01:36:51 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I'm trying to execute the following LabTalk script in Origin:

for(ii=1; ii<=4; ii++)
{ 
string iiString$ = $(ii)    
newbook name:="iiString" sheet:=1 option:=lsname
}

I just paste it into Script Window and hit "enter" on my keyboard and nothing happens. I tried also putting a semicolon after:

first row; all text rows; rows in the loop; any of rows.

I also tried version with intended rows that are inside the loop. What may be the problem?

aplotnikov

Germany
162 Posts

Posted - 10/31/2024 :  8:30:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
for(ii=1; ii<=4; ii++)
{ 
string iiString$ = $(ii);
newbook name:="B%(iiString$)" sheet:=1 option:=lsname;
}
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