* * *

Author Topic: importing files from notebook  (Read 161 times)

flyerphil

  • Newbie
  • Posts: 1
importing files from notebook
« on: October 11, 2018, 04:31:26 pm »
Hello

I have just installed FPC and very pleased so far.

Forgive the naieve question, but if I have some PASCAL in a notepad file, how do I import it into the IDE?

Thanks

Phil
« Last Edit: October 11, 2018, 04:34:52 pm by flyerphil »

Handoko

  • Hero Member
  • *****
  • Posts: 2596
  • My goal: build my own game engine using Lazarus
Re: importing files from notebook
« Reply #1 on: October 11, 2018, 04:49:16 pm »
1. Save the file
2. Make sure it's extension is .pas.
3. Start your Lazarus IDE
4. Lazarus main menu > File > Open > choose the file
5. You will asked to create a new Lazarus project, answer Yes (see image below)
6. Choose "Simple Program" if it is a non-gui program

lucamar

  • Full Member
  • ***
  • Posts: 231
Re: importing files from notebook
« Reply #2 on: October 11, 2018, 05:22:29 pm »
A standard copy / paste should also work; handy for short snippets.
Been there, done that ... barely kept the timelines.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/fpc 3.0.4 - Ubuntu 10, Kubuntu 14, Windows XP SP3 (Home & Prof.) and various DOS incarnations.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus