Paradox Community

Items in pnews.paradox-programming

Subject:Re: SetDir()
Date:Thu, 15 Apr 2021 14:35:14 -0800
From:Peter <peterspammenot@whiteknight.email>
Newsgroups:pnews.paradox-programming
from help files
getaliaspath(const aliasname String) String

"aliasname" is what I don't know, how do I find the current alias?



On 4/15/21 1:56 p.m., Mark Bannister wrote:
> gtaliaspath() ?
> 
> On 4/15/2021 4:44 PM, Peter wrote:
>> var
>> fsy             filesystem
>> strCurrentDirectory    string
>> endvar
>>
>> 1) strCurrentDirectory = fsy.getDir()
>> 2) fsy. SetDir(:PRIV:)
>> 3) fsy.findFirst("file1")
>> 4) fsy.SetDir(strCurrentDirectory) ;//doesn't work
>>
>> #4 doesn't work because getdir() returns the string with single "\"
>>
>> So what I wuld like to do is capture the current alias. How do I do 
>> that? Thank you for any help.
>>
>>
>> Peter
> 


Copyright © 2004 thedbcommunity.com