Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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$)";
}