hi
is there any way to erase array elements having no values stored in it?
"if len(array(a,b))<=0 then erase"
will this work?
thanks
--
hemu
hi
is there any way to erase array elements having no values stored in it?
"if len(array(a,b))<=0 then erase"
will this work?
thanks
--
hemu
The code you show does not demonstrate that the array has no values in it,
it is just testing a particular element of the array.
Erase clears an array down, or as help puts it, Reinitializes the elements
of fixed-size arrays and releases dynamic-array storage space. But if the
array is empty, there is no need to clear it is there not?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Hemant_india" <[email protected]> wrote in message
news:[email protected]...
> hi
> is there any way to erase array elements having no values stored in it?
> "if len(array(a,b))<=0 then erase"
> will this work?
> thanks
> --
> hemu
hi Bob
i'm using writline method to put array containts in text file
But while collecting data some lines in other text files are blank
which are stored in an array
so again while writing to new txt file these lines get written angain
therefor i want to delete or erase empty elements in an array
please help
--
hemu
"Bob Phillips" wrote:
> The code you show does not demonstrate that the array has no values in it,
> it is just testing a particular element of the array.
>
> Erase clears an array down, or as help puts it, Reinitializes the elements
> of fixed-size arrays and releases dynamic-array storage space. But if the
> array is empty, there is no need to clear it is there not?
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Hemant_india" <[email protected]> wrote in message
> news:[email protected]...
> > hi
> > is there any way to erase array elements having no values stored in it?
> > "if len(array(a,b))<=0 then erase"
> > will this work?
> > thanks
> > --
> > hemu
>
>
>
can you show us the code?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Hemant_india" <[email protected]> wrote in message
news:[email protected]...
> hi Bob
> i'm using writline method to put array containts in text file
> But while collecting data some lines in other text files are blank
> which are stored in an array
> so again while writing to new txt file these lines get written angain
> therefor i want to delete or erase empty elements in an array
> please help
> --
> hemu
>
>
> "Bob Phillips" wrote:
>
> > The code you show does not demonstrate that the array has no values in
it,
> > it is just testing a particular element of the array.
> >
> > Erase clears an array down, or as help puts it, Reinitializes the
elements
> > of fixed-size arrays and releases dynamic-array storage space. But if
the
> > array is empty, there is no need to clear it is there not?
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "Hemant_india" <[email protected]> wrote in message
> > news:[email protected]...
> > > hi
> > > is there any way to erase array elements having no values stored in
it?
> > > "if len(array(a,b))<=0 then erase"
> > > will this work?
> > > thanks
> > > --
> > > hemu
> >
> >
> >
hi bob
if not len(atrray(n)<=0 then
s.writeline array(n)
end if
this code worked fine
thanks
--
hemu
"Bob Phillips" wrote:
> can you show us the code?
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Hemant_india" <[email protected]> wrote in message
> news:[email protected]...
> > hi Bob
> > i'm using writline method to put array containts in text file
> > But while collecting data some lines in other text files are blank
> > which are stored in an array
> > so again while writing to new txt file these lines get written angain
> > therefor i want to delete or erase empty elements in an array
> > please help
> > --
> > hemu
> >
> >
> > "Bob Phillips" wrote:
> >
> > > The code you show does not demonstrate that the array has no values in
> it,
> > > it is just testing a particular element of the array.
> > >
> > > Erase clears an array down, or as help puts it, Reinitializes the
> elements
> > > of fixed-size arrays and releases dynamic-array storage space. But if
> the
> > > array is empty, there is no need to clear it is there not?
> > >
> > > --
> > > HTH
> > >
> > > Bob Phillips
> > >
> > > (replace somewhere in email address with gmail if mailing direct)
> > >
> > > "Hemant_india" <[email protected]> wrote in message
> > > news:[email protected]...
> > > > hi
> > > > is there any way to erase array elements having no values stored in
> it?
> > > > "if len(array(a,b))<=0 then erase"
> > > > will this work?
> > > > thanks
> > > > --
> > > > hemu
> > >
> > >
> > >
>
>
>
So where do you need to clear it? Does erase not work fine?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Hemant_india" <[email protected]> wrote in message
news:[email protected]...
> hi bob
> if not len(atrray(n)<=0 then
> s.writeline array(n)
> end if
> this code worked fine
> thanks
> --
> hemu
>
>
> "Bob Phillips" wrote:
>
> > can you show us the code?
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "Hemant_india" <[email protected]> wrote in message
> > news:[email protected]...
> > > hi Bob
> > > i'm using writline method to put array containts in text file
> > > But while collecting data some lines in other text files are blank
> > > which are stored in an array
> > > so again while writing to new txt file these lines get written angain
> > > therefor i want to delete or erase empty elements in an array
> > > please help
> > > --
> > > hemu
> > >
> > >
> > > "Bob Phillips" wrote:
> > >
> > > > The code you show does not demonstrate that the array has no values
in
> > it,
> > > > it is just testing a particular element of the array.
> > > >
> > > > Erase clears an array down, or as help puts it, Reinitializes the
> > elements
> > > > of fixed-size arrays and releases dynamic-array storage space. But
if
> > the
> > > > array is empty, there is no need to clear it is there not?
> > > >
> > > > --
> > > > HTH
> > > >
> > > > Bob Phillips
> > > >
> > > > (replace somewhere in email address with gmail if mailing direct)
> > > >
> > > > "Hemant_india" <[email protected]> wrote in
message
> > > > news:[email protected]...
> > > > > hi
> > > > > is there any way to erase array elements having no values stored
in
> > it?
> > > > > "if len(array(a,b))<=0 then erase"
> > > > > will this work?
> > > > > thanks
> > > > > --
> > > > > hemu
> > > >
> > > >
> > > >
> >
> >
> >
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks