Skip to content

SYS(2014) - File search #13

Open
Open

Description

@lscheffler

The SYS(2014) is sensible to VFP's method to search a file.

Example:

clear
Mkdir  C:\MyDir1
Mkdir  C:\MyDir2

Set Path To C:\MyDir1
Cd C:\MyDir2

Strtofile('','C:\MyDir1\Text1.txt')

Strtofile('','C:\MyDir2\A.txt')
Strtofile('','C:\MyDir2\Text2.txt')

*file does exist: 
?Sys(2014,'Text2.txt','C:\MyDir2\A.txt')	&& Output: TEXT2.TXT
*file does not exist: 
?Sys(2014,'Text3.txt','C:\MyDir2\A.txt')	&& Output: TEXT3.TXT
*will find Text1.txt along the path
?Sys(2014,'Text1.txt','C:\MyDir2\A.txt')	&& Output: ..\MYDIR1\X\TEXT1.TXT

Activity

  1. added a commit that references this issue on Jun 24, 2022
    7977f6f
  2. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions