9. Create Projects and Bring the Source Code
9A. Create Workspace (LVSCE)
Open VS Code and create a Workspace.
Steps: Open Folder → Select or create folder → File → Save Workspace As.
Reference: For more detail, refer here: Create a Workspace.
9B. Create a FGL Project
- In FGL Project Explorer, click the Create FGL Project button.
- Provide a project name and location.
Reference: For more detail, refer here: Create a FGL Project.
9C. Create Programs / Libraries
- Right-click your project in FGL Project Explorer and select Create New → New 4GL Program / New 4GL Library.
- Provide a unique program name.
Reference: For more detail, refer here: Create a FGL Program.
9D. Create Source Files
- Right-click your program in FGL Project Explorer and select Create New → Create 4GL Source File (or other Create option, like the .fm2 file for form definition).
- Name the file (including extension for media files).
Note: Use FGL Project Explorer to create files to ensure they are auto-linked within your project.
Reference: For more detail, refer here: Create Source Files.
9E. Add Existing Sources
- To add an existing program or library to a project: Right-click the project in FGL Project Explorer, select Add Program or Library. In the dialog that will open, select .fgltarget files for programs / libraries.
- To add an existing file to a program: Right-click program in FGL Project Explorer, select Add Existing File → [File Type].
Reference: For more on different actions in LVSCE, see the How To chapter of our docs.
See next: 10. Makefiles Integration (If Used)