>>>>Hi everybody,
>>>>
>>>>I'm trying to investigate strange problem. If I run this command in command window: "DO MAPREF", it fails with "Data type mismatch" error. Debug shows "Source is unavailable". If I change it to DO MAPREF.APP, it runs my correct file and I don't see an error. The same if I DO MAPREF.PRG. So, I thought, may be I have Mapref.exe somewhere, so I did ?FULLPATH("MAPREF.EXE") and it returned a path, while FILE("MAPREF.EXE") returned .f. and Windows Explorer also don't show this file. I've checked HELP file on FULLPATH() in VFP6, but this "feature" is not mentioned here.
>>>>
>>>>What is it: Help omission or bug/feature in FULLPATH() behavior? And why am I seeing this strange problem with error?
>>>
>>>I have actually used the "feature" as a feature. Specifically, the following command:
>>>
>>>
>>>? fullpath("")
>>>
>>>
>>>is
similar to
>>>
>>>
>>>? curdir()
>>>* or: CD
>>>
>>>
>>>but not identical. curdir() will not include the current drive.
>>>
>>>Hilmar.
>>
>>Ok, good to know. I haven't resolved my problem though. I'll check on Monday, if this strange error will appear. I have no explanation, may be some cashed
>>copy was running...
>>
>>BTW, I still think, that Help could be more specific about this behavior.
>
>Unfortunately, you can say that about many topics in the help ...
Right. I'll check on Monday in Hacker's Guide, I don't have it at home.
If it's not broken, fix it until it is.
My Blog