Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-12

Question {%MainUnit} IDE directive

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Vojtěch Čihák
Vojt?ch ?ih?k wrote 8 lines
Hello, I have a small question about this directive. If I use: {%MainUnit ../umain.pas} is it problem when someone will open this project under Windows? I mean slash / backslash.

No, LCL sources uses %MainUnit and I've never spotted such problem. eg. look into lcl/include/dbmemo.inc. (or any other include file in lcl/include and it's same - use slash.

zeljko

Show quoted text 15 lines
I looked here: http://wiki.freepascal.org/IDE_directives, this directive is not mentioned there. Thanks. BTW, Happy new year ! -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Juha Manninen
to Vojtěch Čihák: ? I have a small question about this directive. ? If I use: {%MainUnit ../umain.pas} ? is…
Vojt?ch ?ih?k wrote 6 lines
I have a small question about this directive. If I use: {%MainUnit ../umain.pas} is it problem when someone will open this project under Windows? I mean slash / backslash.

The IDE supports slash also on Windows. No problem.

I looked here: http://wiki.freepascal.org/IDE_directives, this directive is not mentioned there.

Right, the page should be updated. The directive is valid only in .inc files which must be mentioned.

BTW, Happy new year !

Yes, Happy new Year 2015 for everybody.

Regards,
Juha

Reply by email