Hi,
I would like to create a text file where the name would be in a variable.
This is for my project, I have to create a text file
and the user has to choose the name of it.
I don't want to use a window or a control, the user chooses the name and puts it in a text variable.
Then I have to check that the name is valid, but I don't really know how to do that!
For example, the user enters the file name in the variable -> FileName -> "ab\c f*z+4/f-1"
Here, the name is incorrect, "\*+/-" are not accepted in the name of a file !
Do you understand?
I would need a function that tells me if the name is valid or not.
Ex: Resultat = CheckFilename(NameFile$)