Problem to define a string - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Problem to define a string (/Thread-Problem-to-define-a-string) |
Problem to define a string - Petequero - 05-20-2018 Hello guys, I have just solved my probleme of saving file (see thread file-png-save-defaults) by replacing one part of the code for another that I found on internet. I would like to understand why the one I use at fist didn't work. That is a problem of string building. Below in the code, two different way to build a string (which is eventually insert in the save file-png-save-defaults function). The option number one is working. The option number 2 is not. Do you have any idea why ? Code: (let* ( And the crual thing is that the function strcmp, which compare string, display 0, meaning that it is the same string. Why then one of them isi working, but the other one is not ? Thanks in advance for any feedback. David RE: Problem to define a string - Kevin - 05-21-2018 I don't see your problem - the code you have posted is giving the same string for both methods. That would lead me to suspect that the problem is with your script not producing the expected output from the file-glob process. |