Recent

Author Topic: [SOLVED] Directive to new Unit Question.  (Read 4081 times)

garlar27

  • Hero Member
  • *****
  • Posts: 652
[SOLVED] Directive to new Unit Question.
« on: July 05, 2011, 05:18:34 pm »
I've opened an old project and clicked on new form button, and appeared a dialog which says:

"Directive to new Unit"
"The project compiler options and the directives in the main source differ. For the new unit the mode and string type of the project options are used:"

A combobox with "Sintax mode": [FPC | ObjFPC | Delphi | TP | MacPas]
And a Checkbox: "Use Ansistrings"

1) Which option should I use? FPC or ObjFPC?
2) When should I use Ansistring?
3) where Can I find info about this?

Thanks in advance.
« Last Edit: July 06, 2011, 01:44:28 pm by garlar27 »

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Directive to new Unit Question.
« Reply #1 on: July 05, 2011, 11:37:56 pm »
Lazarus uses Mode ObjFpc and AnsiString by default.
I'ld stick by that.

If your old project uses Delphi syntax, and you are use to it use Mode Delphi instead.
See http://www.freepascal.org/docs-html/user/userse33.html#x121-1280007.1 for a detailed explanation of the syntax modes FreePascal uses.

Bart

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: Directive to new Unit Question.
« Reply #2 on: July 06, 2011, 01:44:06 pm »
Thank you Bart!


 

TinyPortal © 2005-2018