[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String Array no empty items.
[Thread Prev] | [Thread Next]
- Subject: Re: String Array no empty items.
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sun, 23 Jun 2024 09:57:23 +0100
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
When you split the file do it like this...
aLines = Split(sText, "\n", Null, True)
The ClearVoid parameter will omit blank lines.
Or for an existing array just join it first.
aLines = Split(aLines.Join("\n"), "\n", Null, True)
Respects
BruceS
On Sat, 22 Jun 2024, 21:37 System64 Development, <64xcode@xxxxxxxxx> wrote:
> Hi,
>
> ¿It is possible to add a method to the array class in order to remove
> all the empty items?
>
> Gracias totales.
>
>
>
| String Array no empty items. | System64 Development <64xcode@xxxxxxxxx> |