Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

"Spreading"

 [1/6] from: chalz::earthlink::net at: 27-Jul-2002 14:48


I'm not exactly sure what to call this, but in another language I sometimes use, I can do something like this. Where, hypothetically: data: "Charles-W-Raymond" info: [firstname middleinit lastname]: parse data "-" Make sense? Any ideas for me? Thanks folks!! --Charles

 [2/6] from: greggirwin:mindspring at: 29-Jul-2002 7:12


Hi Charles, << I'm not exactly sure what to call this, but in another language I sometimes use, I can do something like this. Where, hypothetically: data: "Charles-W-Raymond" info: [firstname middleinit lastname]: parse data "-"
>>
Is this what you're after?
>> data: "Charles-W-Raymond"
== "Charles-W-Raymond"
>> set [first-name middle-name last-name] parse data "-"
== ["Charles" "W" "Raymond"]
>> first-name
== "Charles"
>> last-name
== "Raymond" --Gregg

 [3/6] from: anton:lexicon at: 29-Jul-2002 23:46


Maybe this: data: "Charles-W-Raymond" set [firstname middleinit lastname] parse data "-" Anton.

 [4/6] from: reffy:ulrich at: 29-Jul-2002 9:18


firstname middleinit lastname Is '-' split data --is a nice way using strand assignment
> I'm not exactly sure what to call this, but in another language I sometimes > use, I can do something like this. Where, hypothetically: > data: "Charles-W-Raymond" > info: [firstname middleinit lastname]: parse data "-" > > Make sense? Any ideas for me? Thanks folks!!
Dick

 [5/6] from: chalz:earthlink at: 29-Jul-2002 10:38


Mmmm... purr purr, yes, thank you!! Now to go eliminate 3 lines of code..

 [6/6] from: chalz:earthlink at: 29-Jul-2002 10:43


Yep :) Thanks be to you, too! :)