J'essaye d'utiliser EscapeString et son inverse UnescapeString dans mon programme et je m'aperçois que ça ne change absolument rien à la chaine de caractères.
Voici un petit exemple:
Code : Tout sélectionner
A.s="JE SUIS UNE CHAINE ORDINAIRE"
Debug Len(A)
Debug Len(EscapeString(A,#PB_String_EscapeInternal)); là c'est pas normal si on en crois la fonction... :x
A=A+Chr(10)+chr(13)
Debug Len(A)
Debug Len(UnescapeString(A,#PB_String_EscapeInternal))
Debug EscapeString("Test="+Chr(34)+"Hello"+Chr(34)+".") ; Affiche "Test=\"Hello\".";exemple de PureBasic
macOSMojave
Version 10.14
iMac (Retina 5K, 27-inch, 2017)