Build DataTable out of strings

Hey guys,

I would like to create a list into an Excel file. I have strings for Name, Surname, Number and for choosen objects called Auswahl 1-4.
For every Auswahl I need a row in the Excel list wich contains Name, Surname, Number and value of the object(Auswahl). But if the value for an object is empty, there is no need to create a row. This should happen for all mails.

How can I realize this?

I already got the Strings I need and checked if there is a value for an object at Auswahl.

Main.xaml (13.9 KB)

Best regards

Buddy @Feley

Kindly check the below xaml buddy, hope this would help you
Main (3).xaml (21.7 KB)

Change the variable name in add data row in this xaml with what variable name you want to assign as you wish and also the varaiblenames in if condition atlast



Thank you very much!

Maybe I’m not understanding what you mean or it’s not working

Buddy may i know what is this mentioning in english sorry language problem

One kind suggestion in the if condition the first one is
NOT String.IsNullOrEmpty(Nachname)…it is mentioned NOT String.IsInterned(Nachname).

Cheers buddy

1 Like

Thank you so much!

Thats my result
Main.xaml (19.4 KB)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.