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
 NaN?

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
jmbeaujour Posted - 12/30/2012 : 9:17:15 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.6
Operating System: WinXP

What's the equivalent of NaN in LabTalk?

Here is what I am tryign to do.
I have a long worksheet that I'd need to split in smaller wksheet and the key character for the separation is 2 empty rows like below:

Main wksheet
1 1 1
1 1 1
1 1 1


2 2 2
2 2 2
2 2 2
2 2 2

wksheet1
1 1 1
1 1 1
1 1 1

wksheet2
2 2 2
2 2 2
2 2 2
2 2 2


Here is what I wanted to start with:
page.active$= shname$;
indexWksheet = 1
for(int rowi = 1; rowi <= wks.maxRows; rowi++){
if((col(1)[rowi]==NaN)) {
indexWksheet = indexWksheet++ }
else{
//add row to current indexWksheet
}
}

Tank you for your help.
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 12/31/2012 : 09:07:08 AM
Above links do not work unless you copy/paste all text (at least in Firefox).

Examples:
var1 = NA(); // Creates a variable with missing value
var2 = 1/0; // Another approach
if(ISNA(var1)) ty Indeed; else ty $(var1); // Test for missing value
if(var2==NANUM) ty It is; else ty $(var2); // Another test
cdrozdowski111 Posted - 12/31/2012 : 07:47:57 AM
Check out:

http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:ISNA_(function)

http://wiki.originlab.com/~originla/ltwiki/index.php?title=LabTalk:NA_(function)

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