KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically get project name
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: April 11, 2022

When working in project mode, sometimes the name of the project application is needed. To get the project name programmatically, use the Folder command in conjunction with the fk database folder constant. The property "name" of the returned folder object is the name of the project. For example, given that a project is created with the name “example project”, in the following line:

$projectName:=Folder(fk database folder).name

$projectName will return “example project” in the project application.