+ Reply to Thread
Results 1 to 6 of 6

earasing arrays

  1. #1
    Hemant_india
    Guest

    earasing arrays

    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

  2. #2
    Bob Phillips
    Guest

    Re: earasing arrays

    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




  3. #3
    Hemant_india
    Guest

    Re: earasing arrays

    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

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: earasing arrays

    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

    > >
    > >
    > >




  5. #5
    Hemant_india
    Guest

    Re: earasing arrays

    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
    > > >
    > > >
    > > >

    >
    >
    >


  6. #6
    Bob Phillips
    Guest

    Re: earasing arrays

    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
    > > > >
    > > > >
    > > > >

    > >
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1