On Sep 30, 2006, at 1:05 AM, Robert Livingston wrote:

When is something a property and when a method?

Take the ListBox class as described in the LR

Cell is said to be a method

ListBox1.Cell(1,2) = "Dog"

CellType is said to be a property

ListBox1.CellType(1,3) = True

The syntax of their use seems to be the same. What makes one a property and the other a method? Its seems strange to me that you can assign a value to a method. (ListBox1.Cell(1,2) = "Dog")

The REALbasic documentation is pretty bad: they call things properties when they're methods, they don't indicate when arrays are zero-or one-based, they're riddled with many other sorts of out-and- out errors and missing information.

When in doubt, perform tests, and depend on what the tests say, not what the docs say.

Guyren G Howe
Relevant Logic LLC

guyren-at-relevantlogic.com ~ http://relevantlogic.com

REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to