Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Length of Function name causes bug
F.Y.I.
I've just solved a problem that has occurred only when running EXE.
A procedure includes three calls to a UDF in the same FOR/ENDFOR loop, ie;
lcValue = GetMySubStr(cString,'Search For','Stop At')
lcValue = GetMySubStr(cString,'Search Next','Stop At')
lcValue = GetMySubStr(cString,'Search Again','Stop At')
The above code works great in development but not in EXE. When running EXE the third attempt at GetMySubStr() doesn't even call the function.
I copied GetMySubStr.prg to GetTest.prg and then changed the third UDF call to GetTest() and it then works in the EXE.
I then renamed all the calls from GetMySubStr() to GetTest() and again it works.
Finally, I renamed Function: GetMySubStr() to GetMySub() and it too works.
I have to assume there is a problem calling the function when the length of it's name is longer than 8 characters.
I'm using VFP 6.0 SP5 on Win 2000.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement