Voilà je tombe sur un bug totalement incompréhensible !
En gros quand je définie mes variables et que j'appelle mes fonctions directement ça marche parfaitement, par contre quand je récupére le contenu de mon Editor gadget qui contient la même chose, ça ne marche pas !
Voici le code :
Code : Tout sélectionner
patch$ = "Quelque chose"
structureFile$ = "index.html"+Chr(10)+"css/"+Chr(10)+"/style.css"+Chr(10)+"js/"+Chr(10)+"/script.js"+Chr(10)+"img/"
Procedure create(patch$, structureFile$)
If(patch$ <> "" And structureFile$ <> "")
;Dim fichierACreer$(5)
;fichierACreer$(0) = "index.html"
;
;Debug fichierACreer$(0)
nbrFichiersACreer = CountString(structureFile$,Chr(10))
Dim fichierACreer.s(nbrFichiersACreer +1)
For k=1 To nbrFichiersACreer + 1
fichierACreer.s(k-1) = StringField(structureFile$, k, Chr(10))
Next
For k=0 To nbrFichiersACreer
currentLine$ = fichierACreer.s(k)
If (Right(currentLine$, 1) = "/")
Debug Left(currentLine$, Len(currentLine$) - 1)
EndIf
Next
EndIf
EndProcedure
create(patch$, structureFile$)
alors que avec le code ci-dessus il me retourne css/ js/ et img/
Bref je sais pas si vous comprenez mais c'est très étrange.