Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: fullpath('', pathname) results inconsistent
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00851650
Message ID:
00851664
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
Hi Michael,

It's certanly a bug because FULLPATH('','') returns different results every other call. I'm not sure however which one is correct.
CLEAR
FOR i=1 TO 8
	STORE fullpath('','') TO ("x" + TRANSFORM(i))
ENDFOR
LIST MEMORY LIKE x*
>Try this series of VFP commands:
>
>
>x = fullpath('')
>? fullpath('','')
>? fullpath('','')
>
>
>Note that the first result from fullpath('','') is blank (wrong!), but the second result correctly displays the current directory. All subsequent results are consistently correct, but for some reason, having immediately preceded the first invocation by the initial assignment statement that refers to fullpath('') screws up the immediately following result from fullpath called with 2 arguments. The same problem occurs for any path specified in the second argument.
>
>I've tested this under both VFP6SP5 and VFP7SP1, XP Pro SP1. Please confirm, do others see this nasty bug, and does it still exist in VFP8SP1?
>
>Mike
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform