Recent

Author Topic: Permitted contents of the *.lpr file?  (Read 3517 times)

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Permitted contents of the *.lpr file?
« on: April 09, 2011, 03:19:04 am »
What content is permitted in the *.lpr file? 

Can I add programming content inside the *.lpr or are only application.xxxxx functions permitted?

Can I call a function from a unit here and based on the results from that, change the sequence of .CreateForms?  I'm thinking about calling my check for valid license before I show any forms and depending on the results, show an "EvalMessage" form.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Permitted contents of the *.lpr file?
« Reply #1 on: April 09, 2011, 03:31:11 am »
Yes, you can edit it.

You can use all allowed by the uses section.
« Last Edit: April 09, 2011, 03:48:37 am by typo »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8831
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Permitted contents of the *.lpr file?
« Reply #2 on: April 09, 2011, 05:54:13 am »
Quote
Can I add programming content inside the *.lpr or are only application.xxxxx functions permitted?

Can I call a function from a unit here and based on the results from that, change the sequence of .CreateForms?  I'm thinking about calling my check for valid license before I show any forms and depending on the results, show an "EvalMessage" form.
The .lpr is still a valid Pascal source, you can have anything that's valid in Pascal.

 

TinyPortal © 2005-2018