Date: Tue, 23 Aug 2005 10:16:56 -0400
Reply-To: Jun Wan <jun.wan@ORCMACRO.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jun Wan <jun.wan@ORCMACRO.COM>
Subject: about the behavior of INDEX function
Hi,
I have a dataset have a string variable named 'ax' like
';1;' ';8;16;'
It begin and end with a ';' and all number seperated by ';'
syntax like
COMPUTE i1=INDEX(ax,';1;').
IF (i1=0) i1=INDEX(ax,';1 ').
set i1 to 0 when ax is ';4;8;16;'
Can anyone know why?
Thank you
Jun
|