Lazarus

Free Pascal => Beginners => Topic started by: WickedDum on August 17, 2016, 03:54:37 am

Title: [SOLVED] Are they called Properties or Descriptors?
Post by: WickedDum on August 17, 2016, 03:54:37 am
I understand $COMPILER directives.  I also understand FPC RESERVED WORDS.  But where in the heqq can I find a list of the ITEM.OTHER_WORDS??? %)  Are they called Properties or Descriptors or ???  It would be very helpful to have a list of them.

If I knew what to call them, I might be able to find them...or maybe not. :(

HELP!  Thanks!
Title: Re: Are they called Properties or Descriptors?
Post by: derek.john.evans on August 17, 2016, 06:43:16 am
Depends on what ITEM is, doesn't it?

If you mean, ITEM is a class/object and you are wanting to find the methods/properties, then search for the class/object name.

What is ITEM?

Title: Re: Are they called Properties or Descriptors?
Post by: Handoko on August 17, 2016, 07:11:34 am
When typing the code, move your cursor right after the (dot) item. and use [ctrl]+[space] shortcut, a list will show up.

It is called Identifier Completion, you can find other useful shortcuts here:
http://wiki.freepascal.org/Lazarus_IDE_Tools
Title: Re: Are they called Properties or Descriptors?
Post by: engkin on August 17, 2016, 07:14:17 am
What is ITEM?
LOL.

reserved words (http://www.freepascal.org/docs-html/ref/refse3.html#x11-100001.3)
compiler defines (http://www.freepascal.org/docs-html/prog/progap7.html).
local directives (http://www.freepascal.org/docs-html/prog/progse2.html#x7-60001.2)
global directives (http://www.freepascal.org/docs-html/prog/progse3.html#x91-900001.3)
compiler configurations (http://www.freepascal.org/docs-html/user/userch5.html#x33-400005)

You might find these useful as well:
Index of all identifiers in package 'rtl' (http://lazarus-ccr.sourceforge.net/docs/rtl/index-8.html)
Index of all identifiers in package 'fcl' (http://lazarus-ccr.sourceforge.net/docs/fcl/index-8.html)
Index of all identifiers in package 'lcl' (http://lazarus-ccr.sourceforge.net/docs/lcl/index-8.html)
Title: Re: Are they called Properties or Descriptors?
Post by: WickedDum on August 17, 2016, 08:45:25 pm
Thanks, guys!

For clarification: 
Example:  var.text.  What other properties(?) are available to me besides 'text'?

Geepster:  If I knew what ITEM was, I would probably not have to post the question.  Search 'what' for the class/object name?

engkin:  The first five items, I got.  The next three links, I got - A HEADACHE!!  The RTL list is nice!

Handoko:  Excellent reply!  Well...almost.  It listed a lot of Functions and Procedures.  I guess I'm looking for 'properties'.  As for the IDE Tools, I was looking at that the other day  Not sure I am far enough along yet to use the shortcuts.

In batch files and also in different languages there are specific 'words/commands' one can use to get the OS, date n' time, drives, et al.  That's one list I would like to have.

Thanks, again!
Title: Re: Are they called Properties or Descriptors?
Post by: Handoko on August 18, 2016, 01:25:45 pm
Handoko:  Excellent reply!  Well...almost.  It listed a lot of Functions and Procedures.  I guess I'm looking for 'properties'.

If you start the shortcut without putting your cursor after the dot of the class/object, you will a huge list of things. So try it again with this step-by-step testing:

1. start a new empty application
2. move your cursor below the implementation section
3. type: begin and press [enter]
4. type: Form1
5. type a dot: .
6. activate the shortcut
7. you will a list of things that related with the class/object only.

In batch files and also in different languages there are specific 'words/commands' one can use to get the OS, date n' time, drives, et al.  That's one list I would like to have.

Perhaps these may help:

Functions that are connected to the operating system:
http://www.freepascal.org/docs-html/rtl/system/osfunctions.html

Functions for retrieving and setting general system information such as date and time:
http://www.freepascal.org/docs-html/rtl/dos/sysinfo.html

Functions for date and time handling:
http://www.freepascal.org/docs-html/rtl/sysutils/datetimeroutines.html

Functions for file manipulation:
http://www.freepascal.org/docs-html/rtl/sysutils/filenameroutines.html

Routines to handle files on disk:
http://www.freepascal.org/docs-html/rtl/dos/filehandling.html

Functions for reading/writing to file:
http://www.freepascal.org/docs-html/rtl/sysutils/ioroutines.html

Have fun!
Title: [SOLVED] Re: Are they called Properties or Descriptors?
Post by: WickedDum on August 18, 2016, 10:53:18 pm
Thanks!!

I guess I just saw Procedures and Functions.  Now I see Properties, too!  Thank you for the steps, Handoko.  :)

As for the links to the RTL, as I mentioned to engkin, it is chocked full of stuff (functions, etc.).

Thank you all very much!!


TinyPortal © 2005-2018