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
 type function

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
shyamigcar2 Posted - 06/07/2017 : 10:49:39 AM
wks.ncols=100;
w = wks.maxrows;
int i;
wcolwidth 4, 11;
loop(i,1,$(w))
{
y=col(1)[i+1];
String ter$(i)$ = col(2)[i+1]$;

if(col(1)[i]==col(1)[i+1])
{
n=i;
type "the numbers are same and the number is $(y) and the word is %(ter$(i))";
m=i+4;
Col($(m))[n]$=ter$(i)$;
}
else
type "the numbers are different;

}

I have some numbers in column 1 and column 2 contains some strings. I have collected the strings (String ter$(i)$ = col(2)[i+1]$)
I wanted to use the type command and see the collected strings in the command window. The type command (type "the numbers are same and the number is $(y) and the word is %(ter$(i))";) does not output the strings collected. What is the mistake?
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 06/07/2017 : 6:16:12 PM
Why do you need the string to have enumeration? You are not storing it, just

loop(i,1,5)
{
	String ter$ = col(2)[i+1]$;
	type "the word is %(ter$)";
}



CP

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