making a CSF out of a block
[1/4] from: moeller_thorsten:gmx at: 24-Aug-2000 9:19
Hi List,
i got stuck in a little problem. I tried to solve it using the users guide
but don't get any futher now.
i have a block containing several data like ["a" "b" "c"]
i need to make a delimited line in a file out of that like a|b|c
Has anybody an idea for me?
Thorsten
[2/4] from: al:bri:xtra at: 24-Aug-2000 19:36
Thorsten wrote:
> i got stuck in a little problem. I tried to solve it using the users guide
but don't get any further now.
> i have a block containing several data like ["a" "b" "c"]
>
> i need to make a delimited line in a file out of that like a|b|c
>
> Has anybody an idea for me?
>> Items: ["a" "b" "c"]
== ["a" "b" "c"]
>> CSF: make string! 100
== ""
>> foreach Item Items [append CSF join Item "|"]
== "a|b|c|"
>> head remove back tail CSF
== "a|b|c"
I hope that helps!
Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
[3/4] from: a::drehmann::delmia::de at: 24-Aug-2000 10:29
[moeller_thorsten--gmx--de] writes:
> Hi List,
>
> i got stuck in a little problem. I tried to solve it using the users guide
> but don't get any futher now.
>
> i have a block containing several data like ["a" "b" "c"]
>
> i need to make a delimited line in a file out of that like a|b|c
>
> Has anybody an idea for me?
Try
replace/all reform ["a" "b" "c"] " " "|"
Andreas
[4/4] from: al:bri:xtra at: 24-Aug-2000 20:44
> Try
>
> replace/all reform ["a" "b" "c"] " " "|"
Fails with spaces in items:
>> replace/all reform ["a" "b b" "c"] " " "|"
== "a|b|b|c"
Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/