THE FORUM IS IN READ-ONLY MODE
How to save this as a list?
-
Hello guys, hope you're all doing well.
I want to save these names as an organized list without these symbols → "," ←.
To be clear, I want to save them in a text file organized as name under name (names list). in OB of course.
Any help is much appreciated.
-
@test_it please copy paste the text for us to have as an example.
And your final output needs to be each name on a different line in a file?
-
@test_it
First create a list with your capture then make a loopPARSE "<SOURCE>" LR "\"" "\"" Recursive=TRUE -> VAR "NameCapList" UTILITY List "NameCapList" Length -> VAR "LENTH" SET VAR "INDEX" "0" WHILE "<INDEX>" LessThan "<LENTH>" ## LOOP UTILITY File "ListName.txt" AppendLines "<NameCapList[<INDEX>]>" -> VAR "Name" FUNCTION Compute "<INDEX>+1" -> VAR "INDEX" ENDWHILE
-
@Snowy Exactly
-
@test_it Please send this text from your print to us.
-
@Snowy Which text, you mean the names?
-
@Br4uN Is this the only way to make this possible?
-
you could also remove the translate function to replace the " with nothing
And the variable split utility with , as seperator - then you have a list
But for saving the list to text is @Br4uNs Solution likely the best
-
@test_it
This is the only way I know to do that in OB unless you wanna use IronPython to do the same, is not difficult just copy the code and replace "SOURCE" on first line with your capture name
SOURCE ---> values "jhon","peter","dan","james","Steven"
Create a list ----> [jhon, peter, dan, james, Steven]
save name on text File
jhon
peter
dann
...
-
@meinname Thanks mate
-
@Br4uN Ouch I don't understand the IronPython part, but I'll try to make the first one correct, Appreciated man.
-
I just saw this topic...is it also possible to create a Namelist and upload to a folder in OB and make a code that the name should be picked from the uploaded list...j