Re: Parsing between a character and sysmbol
- From: "Branco Medeiros" <branco.medeiros@xxxxxxxxx>
- Date: 17 Aug 2006 22:34:57 -0700
Scott M. wrote:
This seems much more complicated than it need be. Why search for the "-"
when you can immediately split the string at its location and throw away the
part you don't need?
Because split does just that: searches for a pattern. And then allocate
an array. And then populate each member of the array with a copy of the
slice between the separator.
It just bothers me to use Split to do that. Just as IsNumeric: it works
by converting the string to Double, what seems a terrible waste of
processing, to me.
The code seems too much effort but it also seems efficient, to me.
YMMV.
Regards,
Branco.
.
- References:
- Parsing between a character and sysmbol
- From: gene . ariani
- Re: Parsing between a character and sysmbol
- From: Branco Medeiros
- Re: Parsing between a character and sysmbol
- From: Scott M.
- Parsing between a character and sysmbol
- Prev by Date: Re: Component UI CAB Architecture Guide??? For Dummies Book? :-)
- Next by Date: Re: DateTime conversion to Integer
- Previous by thread: Re: Parsing between a character and sysmbol
- Next by thread: Re: Parsing between a character and sysmbol
- Index(es):
Relevant Pages
|