Skip to content

[VFP] SET PATH TO incompatibility #2068

Description

@cpyrgas

Found this VFP code:

lcRootPath = AddBs(JustPath(Sys(16)))
lcDataPath = lcRootPath + "Data"

SET PATH TO (lcRootPath)
SET PATH TO (lcDataPath) ADDITIVE

Apparently SET PATH needs to support multiple paths and when using the ADDITIVE clause, a new one gets added to the list. Currently, the aboce command gets translated to

Set(Set.Path, "(lcDataPath) ADDITIVE")

Also according to https://hackfox.github.io/section4/s4g636.html, it is possible to specify multiple paths in a single command, separating them with commas.

cList = "C:\WINDOWS,"+SYS(2004)
SET PATH TO (cList)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FoxProFoxPro dialect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions