[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Unstring function
have you try adding "INTO"?
> unstring $test_variable by ',' INTO $var1 $var2 $var3
>
>
>
>
> ----------
> From: data files[SMTP:transmit20@HOTMAIL.COM]
> Sent: Wednesday, January 12, 2000 3:13 PM
> To: SQR-USERS@list.iex.net
> Subject: Unstring function
>
> Hello all!
>
> I am reading in a comma delimeted file. Currently, I am reading in an
> entire line at a time, identifying each comma and extrating the data out.
> (Tedious)
>
> I had originally tried the following, but I just couldn't get it to work:
> ------------------------------------------------
> let $test_variable= '100,101,102'
>
> unstring $test_variable by ',' $var1 $var2 $var3
>
> display $var1
> display $var2
> display $var3
>
> ------------------------------------------------
>
> When I run this, $var1 and $var2 are set to blanks and $var3=102
> What I want to happen is $var1=100, $var2=101, $var2=102
>
> Any ideas why it didn't work? Are there issues with the unstring command
> that I'm not considering?
>
> Thanks in advance,
> Melissia
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>