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
 doc -cw command returns unexpected value

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
superklee Posted - 01/07/2005 : 05:22:26 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
superklee Posted - 01/10/2005 : 04:13:18 AM
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
Mike Buess Posted - 01/07/2005 : 07:35:53 AM
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

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