Hello, i am a beginner in B4A.
I have been trying for hours to solve an issue.
I have a label containing "Colossiens 1,1,/ blablabla"
with the substring2 i extract the word "Colossiens" and put it in a string variable and with this variable&".txt" i try to open a file with the same name "Colossiens.txt". Then i get a message saying the file does not exist. When instead of using substring and a variable, i type directly the word "Colossiens", it works fine and opens the file.I noticed something: when i get the word "Colossiens" as a string its lenght is 11 but when i type it directly its lenght is 10. I have used trim but it still doesnt work. I really dont understand, can anyone help me please ! thank you
I have been trying for hours to solve an issue.
I have a label containing "Colossiens 1,1,/ blablabla"
with the substring2 i extract the word "Colossiens" and put it in a string variable and with this variable&".txt" i try to open a file with the same name "Colossiens.txt". Then i get a message saying the file does not exist. When instead of using substring and a variable, i type directly the word "Colossiens", it works fine and opens the file.I noticed something: when i get the word "Colossiens" as a string its lenght is 11 but when i type it directly its lenght is 10. I have used trim but it still doesnt work. I really dont understand, can anyone help me please ! thank you