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
 doc -cw command returns unexpected value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

superklee

Germany
Posts

Posted - 01/07/2005 :  05:22:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System: Windows 2000

Hello to all,

I have a problem with the doc -cw command. I´m trying to count all worksheets within the project using

doc -cw;
var = count;

This command works fine as long as I don't create a new worksheet.
after creation of a new worksheet the command returns a wrong value. For instance, if I create a single, empty worksheet and count the number of worksheets, the command returns the value 2 instead of 1.

I didn´t find any similar problems within this forum. Does someone know how exactly the command works and if there is a way to get the correct number of worksheets?

I appreciate your help.

Anita

Mike Buess

USA
3037 Posts

Posted - 01/07/2005 :  07:35:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Anita,

I can't reproduce that problem in Origin 6.1 SR4. When I try doc -cw it always gives me the true worksheet count.

...Perhaps you're forgetting to redefine var=count each time. That's not done automatically.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/07/2005 08:53:11 AM
Go to Top of Page

superklee

Germany
Posts

Posted - 01/10/2005 :  04:13:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Mike,

it wasn´t a problem of reinitiating the variable, rather a problem of the program itself. After I installed the service release 4 i didn´t encounter the problem anymore. I didn´t know that this service release wasn´t installed on this computer.

Anita
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