Paradox Community

Items in pnews.paradox-programming

Subject:Re: MakeDir()
Date:Thu, 19 Oct 2017 14:27:23 -0700
From:Peter <peter@whiteknight.email>
Newsgroups:pnews.paradox-programming
Never mind I got it.

The problem was the double backslash. Rejigged the part that constructs 
the string variable StrPathNew to only have single backslashes and it 
worked, and I understand why. Have been working on this for hours.

Peter


On 10/19/2017 02:10 PM, Peter wrote:
> This is puzzling, can anyone tell me what is wrong?
>
> This works
> if not fsy.makeDir("D:\\Corel\\Settings\\9\\Pdx\\SchedPriv") then
>     errorShow()
> endIf
>
> This will not work
> strPathNew = "\"" +strPathNew+ "\""
> view(strPathNew)  ;//shows (including the quotation marks)
> "D:\\Corel\\Settings\\9\\Pdx\\SchedPriv"
>
> if not fsy.makeDir(strPathNew) then
>     errorShow()
> endIf
>
> I also tried strPathNew without the quotation marks and still wouldn't
> work.
>
> Thank you.
>
>
> Peter


Copyright © 2004 thedbcommunity.com