Yes, I had this same problem to fix it, I had to use 2 seperate proc/func. For example:
PROCEDURE XXXX
lcProjdirx = mygetdir('C:', 'Project folder')
WAIT WINDOW TYPE('lcProjDirx')
ENDPROC
FUNC MyGETDIR
LPARA tcdefaultdir, tcDesc
RETURN GETDIR(tcDefault,tcDesc)
ENDFUNC
>I never saw it happen. W/o seeing once have no idea :(
>Cetin
>>Cetin
>>The code is very simple
>>
>>procedure xxxx
>>lcProjdirx = getdir('C:', 'Project folder')
>>
>>by here , the damage already done as getdir() returns a numeric '4' rather than the (char) name of the folder. If I include set step on before the prg line, it works. Maybe VFP corrupted ? as it has run normally for 3 years. Under VFP 7, its fine.
>>
>>Denis
>>
>>Assuming you check return value immediately on return from GetDir() (otherwise be sure you used a local variable) does adding an m. prefix help ? Would you show code portion.
>>Cetin
Précédent
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