Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last Folder
Message
From
13/07/2007 10:56:59
 
 
To
13/07/2007 10:29:20
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01240179
Message ID:
01240231
Views:
19
This message has been marked as the solution to the initial question of the thread.
>Dear Sir,
>
>I load my PJX file from this location
>D:\Projects\vfp\office\accounts
>
>[pre]
>lcFullPath=FULLPATH(CURDIR()) && D:\Projects\vfp\office\accounts
>LastFolder = substr(m.lcFullPath, rat('\', m.lcFullPath) + 1)
>?LastFolder
>[/pre]
>
>The above codes display noting
>
>Please help again

That is another thing then since

lcFullPath=FULLPATH(CURDIR()) is NOT "D:\Projects\vfp\office\accounts" but "D:\Projects\vfp\office\accounts\" (Notice the last backslash)


lcFullPath = FULLPATH(CURDIR())
lcFullpath = Left(lcFullpath, Len(lcFullPath) - 1)
lcLastFolder = Justfname(lcFullpath)


Carlos
Previous
Reply
Map
View

Click here to load this message in the networking platform