Remove white lines

Hello everyone, here is my problem, when I enter data in my application, if there are blank lines between several lines, it does not delete me, do you have any idea how I can do this, I looked and tested different information found on your forum but it does not work thank you


Declassement.txt (261 Octets)

Not sure I understand?

Looking at your blocks, you do not use a line return \n in the join blocks where you put spaces ?

Do you want to create this:


Local 139 Sicad-Cia

AJOUT PE2024-0125074 LPT 
Hilde D04-38 



PE2019-00023 SCR 
  



PE2019-00025 SCR 
  
TOURNAI-MAIRE
Local 349 Sicad-Cia 

RETRAIT PE2011-09918 05 SCR 
  



AJOUT PE2019-00024 SCR 
  



 PE2019-00008 SCR 
  



 PE2016-03730 24 CPU 
  

or convert the above to:

Local 139 Sicad-Cia
AJOUT PE2024-0125074 LPT 
Hilde D04-38 
PE2019-00023 SCR 
PE2019-00025 SCR 
TOURNAI-MAIRE
Local 349 Sicad-Cia 
RETRAIT PE2011-09918 05 SCR 
AJOUT PE2019-00024 SCR 
PE2019-00008 SCR 
PE2016-03730 24 CPU   

Were you planning on recovering this data from the file?

You would need Comma Separated Values (CSV) or JSON formatting to keep the data items separate from each other.

Good morning, thank you for your reply. I would like this.
Local 139 Sicad-Cia
AJOU5074 LPT
Hilde D04-38
PE2019-00023 SCR
PE2019-00025 SCR
TOURNAI-MAIRE
Local 349 Sicad-Cia
RETRAIT PE2011-09918 05 SCR
AJOUT PE2019-00024 SCR
PE2019-00008 SCR
PE2016-03730 24 CPU

image
(draggable procedures:)
optional_line

In your code, replace all the individual JOINs with calls to the optional_line value procedure, which only adds a line feed for non-empty text, and does not emit line feeds or blanks for blank text.

Thank you very much for your answer
Scan_PE_copy.aia (63,5 Ko)
but I can't call the function in my joins

Here's a copy with the function added to both screens.

It's not clear to me why you would write such unparseable combinations of items to a file, without good delimiters to help parse the lines when you read the file back in later.
Scan_PE_copy (2).aia (63.8 KB)

Thank you very much for your help, it's almost good I just need on the same line scan result and type: example PE2022-1234 SCR how can I do this?

What have you tried?

Thank you very much, this helped me a lot, here I cannot do in appinventor an "and in programming" with the lines so that it displays on the same line: THE "PE" and the "Type". one next to the other If I use the logic block it returns true or false

Show us.

If you just want to display two items on a line, why do you JOIN so many items?

I need a list of items like you did, but when saving I need several pieces of information that were entered on the same line.