Recent

Author Topic: How to access Application object from any unit in project?  (Read 3060 times)

heejit

  • Full Member
  • ***
  • Posts: 245
How to access Application object from any unit in project?
« on: March 19, 2018, 07:01:20 pm »
How to access the Application.Location property from a unit in project??

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: How to access Application object from any unit in project?
« Reply #1 on: March 19, 2018, 07:19:34 pm »
Put Forms on the uses clause of the unit.

When you hover you mouse on the text: Application, you will get a hint that said it is provided by forms.pp.
« Last Edit: March 19, 2018, 07:25:26 pm by Handoko »

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: How to access Application object from any unit in project?
« Reply #2 on: March 19, 2018, 10:43:47 pm »
add FORMS in your USES clause...

Application should show,,
The only true wisdom is knowing you know nothing

heejit

  • Full Member
  • ***
  • Posts: 245
Re: How to access Application object from any unit in project?
« Reply #3 on: March 20, 2018, 12:43:59 am »
It is working

I am using web project fphttpapp provide the Application object


 

TinyPortal © 2005-2018